Uploaded image for project: 'OASIS Open Document Format for Office Applications (OpenDocument) TC'
  1. OASIS Open Document Format for Office Applications (OpenDocument) TC
  2. OFFICE-2332

Logical Number material appears under Logical Boolean

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: ODF 1.2 Part 2 CD 1
    • Fix Version/s: ODF 1.2 Part 2 CD 1
    • Component/s: OpenFormula
    • Labels:
      None
    • Proposal:
      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
    • Resolution:
      Hide

      See proposal.

      Show
      See proposal.

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              patrick Patrick Durusau
              Reporter:
              patrick Patrick Durusau
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: