ILE C/C++ Programmer's Guide


Using the _DecimalT Class Template

When you are working with ILE C++, the _DecimalT class template allows representation of up to 31 significant digits, including integral and fractional parts. The fractional part of a dollar can be represented accurately by two digits following the decimal point.

Note:
You do not have to use floating point arithmetic. Floating point is more suitable for scientific and engineering computations, which often use numbers that:

The same declarations and operators that you use on other data types, such as float, can be applied to _DecimalT class templates, with the exception of unions and bitwise operators that do not apply to _DecimalT class templates.

You can:


[ Top of Page | Previous Page | Next Page | Table of Contents ]