This COM interface is defined and implemented by HL7Connect for use by other applications.

Precision 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


Properties

IsScientific : Boolean
Precision : Integer
AsString : String
AsScientific : String
AsDecimal : String

Methods

Add(oOther : ISmartDecimal) : ISmartDecimal
AsCOMDecimal : tagDEC
AsHex(chars : Integer) : String
AsInt64 : Int64
Divide(oOther : ISmartDecimal) : ISmartDecimal
DivInt(oOther : ISmartDecimal) : ISmartDecimal
IsOne : Boolean
IsWholeNumber : Boolean
IsZero : Boolean
Modulo(oOther : ISmartDecimal) : ISmartDecimal
Multiply(oOther : ISmartDecimal) : ISmartDecimal
Subtract(oOther : ISmartDecimal) : ISmartDecimal
Trunc : ISmartDecimal

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