UCUM (Unified Code for Units of Measure) Support

Classes

ManagerBasic UCUM services

QDecimalPrecision aware Decimal implementation. Any size number with any number of significant digits is supported.

Note that operations are precision aware operations. Note that whole numbers are assumed to have unlimited precision. For example:

  2 x 2 = 4
  2.0 x 2.0 = 4.0
  2.00 x 2.0 = 4.0
and
 10 / 3 = 3.33333333333333333333333333333333333333333333333
 10.0 / 3 = 3.33
 10.00 / 3 = 3.333
 10.00 / 3.0 = 3.3
 10 / 3.0 = 3.3

Addition

  2 + 0.001 = 2.001
  2.0 + 0.001 = 2.0

Note that the string representation is precision limited, but the internal representation is not.

why QDecimal as a name in the DotNet API? It's for quantities, but just calling it Decimal clashes with System.Decimal which is always in scope


© Kestral Computing P/L 2000 - 2003. HL7Connect v2.00-063 generated on 30-Nov 2015.
Keywords: HL7Connect.Ucum