• Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • ODF 1.2 Part 2 CD 1
    • Affects Version/s: ODF 1.2 Part 2 CD 1
    • Component/s: OpenFormula
    • None
    • Hide

      Delete under Boolean.

      Insert new section under Number: Logical (Number), to read:

      A logical value is a subtype of number where TRUE() returns 1 and FALSE() returns 0.
      The implicit conversion operator "Convert to Logical" 5.3.10, when a number is passed as a condition, 0 is considered False and all other numeric values are considered True.
      Note: Boolean values may be a distinct type from Number. 3.5

      Insert under Logical (Boolean)

      Note: Boolean values may be a subtype of number. 3.3.6

      Show
      Delete under Boolean. Insert new section under Number: Logical (Number), to read: A logical value is a subtype of number where TRUE() returns 1 and FALSE() returns 0. The implicit conversion operator "Convert to Logical" 5.3.10, when a number is passed as a condition, 0 is considered False and all other numeric values are considered True. Note: Boolean values may be a distinct type from Number. 3.5 Insert under Logical (Boolean) Note: Boolean values may be a subtype of number. 3.3.6
    • Hide

      See proposal.

      Show
      See proposal.

      Logical Boolean now includes:

      ***
      Logical values may be implemented as a distinct, distinguishable type from numbers, so that ISNUMBER(TRUE()) and ISLOGICAL(1) evaluates to FALSE(). However, logical values may also be implemented as a subtype of Number, where TRUE() simply returns 1 and FALSE() simply returns 0. Note that due to the implicit conversion operator "Number to Logical" (discussed below), when a number is passed as a condition, 0 is considered False and all other numeric values are considered True.
      ***
      Should appear as subtype of number.

            Assignee:
            Patrick Durusau
            Reporter:
            Patrick Durusau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: