Data Access User Manual > Rogue Wave Views Data Access Gadgets > Utility Classes > The IliDecimal Class
 
The IliDecimal Class
The IliDecimal class is used to hold floating point numbers with up to 38 digits of precision represented internally in base 10. This contrasts with the C++ double type that represents floating point numbers in base 2 and has a machine-dependent precision.
The following code extract shows how this class is used:
IliDecimal dec = someField->f_getValue().asDecimal();
someField->f_setValue(dec + IliDecimal(0.5));

Version 6.0
Copyright © 2015, Rogue Wave Software, Inc. All Rights Reserved.