Overview
  Next

The Decimal library should be used when calculating very large and very accurate numbers.
It uses 128 bits to store the numbers.
The Decimal library includes two types of objects:
DecOperators - Includes the methods that can be used with the decimal numbers.
DecNumber - Represents a number of the decimal type.

Example:
'Add a DecOperator named dec.
Sub Globals

End Sub

Sub App_Start
      dec.New1
      AddObject("d1","decNumber")
      AddObject("d2","decNumber")
      d1.New1
      d2.New1
      d1.Value = dec.ParseD("10000")
      d2.Value = dec.FromDouble(7)
      msgbox(dec.CompareD(d1.Value,d2.Value))
      d1.Value = dec.DivD(d1.Value,d2.Value)
      d1.Value = dec.AddD(d1.Value, d2.Value)
      d = d1.ToString
      msgbox(d1.ToDouble)
      msgbox(d1.ToString2("n20"))
End Sub