Menu

Dec

Richard

The Big Decimal class uses an instance of the BI class to hold the entire number. The Decimal Place is held in a value called _decimalplace, this can be any number up to DecimalLimit.

The class handles all of the adjustments of the numbers internally so that all of the math comes out correct. At the end of all calculations there is a call to a routine called FixTheEnds which will drop any trailing zeros.

The decimal limit only affects everything to the right of the decimal place, there can be any number of digits before the decimal point, but only up to decimal limit to the right of the decimal point. After a calculation is done it will round the number (if needed) by the method dictated by the HowToHandleRounding value.


Related

Wiki: Home