C++ LtXmlLib20::CBinaryData
In This Topic
LtXmlLib20::CDecimal Class
A class to hold arbitrarily long decimal numbers, to a fixed precision. The class is designed primarily as a container for such numbers, and the additional functionality (addition/subtraction/division/multiplication) is provided on an unsupported basis. It is recommended that such numbers are extracted from this class in the form of a LONGLONG (int64) or string, and used in this form.
Also note that many of the mathematical operations are quite slow, especially if the accuracy is high (
MaxDecimalPlaces).
|
|
Members |
Description |
|
|
|
CDecimal |
Constructor |
|
|
|
MaxDecimalPlaces |
Global - Sets the precision of the library (by default its 30 decimal places) |
|
|
|
GetNegative |
Multiplies the current object by -1. |
|
|
|
operator= |
Copy operator. |
|
|
|
operator== |
Compares this objects data with another objects |
|
|
|
operator!= |
Compares this objects data with another objects |
|
|
|
operator< |
Compares this objects data with another objects |
|
|
|
operator> |
Compares this objects data with another objects |
|
|
|
operator<= |
Compares this objects data with another objects |
|
|
|
operator>= |
Compares this objects data with another objects |
|
|
|
operator+ |
Adds a Big Int to the current value |
|
|
|
operator- |
Subtracts a Big Int from the current value |
|
|
|
operator* |
Multiples a Big Int with the current value |
|
|
|
operator/ |
Divides the current value by a Big Int . |
|
|
|
operator++ |
In-place Add operator |
|
|
|
operator-- |
In-place Subtraction operator |
|
|
|
ToBigInteger |
Converts the current value to a BigInteger. |
|
|
|
ToDouble |
Converts the current value to a double, throws if out of range . |
|
|
|
ToLong |
Converts the current value to a long, throws if out of range . |
|
|
|
ToLongLong |
Converts the current value to a LONGLONG (int64) throws if out of range . |
|
|
|
ToString |
Converts the current value to a string. |
|