Uploaded image for project: 'Spatial Information Systems'
  1. Spatial Information Systems
  2. SIS-429

Arithmetic operation on quantities on values converted to system units

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0
    • None
    • None

    Description

      The result of arithmetic operations on quantities shall be as if all values were converted to system quantities before the operations is performed. For most units, it make no difference. But for temperature in Celsius, it as more complex consequences (1°C + 2°C = 276.15 °C). While the above seems counter-intuitive, it is essential for preserving arithmetic laws like associativity and commutativity.

      The more intuitive result (1°C + 2°C = 3°C) requires that one of the operands is treated as a temperature increment instead than a temperature measurement. Such distinction is out of scope of the issue, since it would require a change in Unit API.

      Attachments

        Activity

          People

            desruisseaux Martin Desruisseaux
            desruisseaux Martin Desruisseaux
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: