LibreOffice
LibreOffice 24.2 SDK C/C++ API Reference
|
Add two values.
If signs differ and the absolute values are equal according to approxEqual() the method returns 0.0 instead of calculating the sum.
If you wanted to sum up multiple values it would be convenient not to call approxAdd() for each value but instead remember the first value not equal to 0.0, add all other values using normal + operator, and with the result and the remembered value call approxAdd().
ceil() method taking approxValue() into account.
Use for expected integer values being calculated by double functions.
Test equality of two values with an accuracy defined by nPrec.
floor() method taking approxValue() into account.
Use for expected integer values being calculated by double functions.
Subtract two values (a-b).
If signs are identical and the values are equal according to approxEqual() the method returns 0.0 instead of calculating the subtraction.
|
inline |
A wrapper around rtl_math_doubleToString, with no grouping.
|
inline |
A wrapper around rtl_math_doubleToString.
|
inline |
A wrapper around rtl_math_doubleToString that appends to an rtl::OStringBuffer, with no grouping.
|
inline |
A wrapper around rtl_math_doubleToString that appends to an rtl::OStringBuffer.
|
inline |
A wrapper around rtl_math_doubleToUString, with no grouping.
|
inline |
A wrapper around rtl_math_doubleToUString.
|
inline |
A wrapper around rtl_math_doubleToUString that appends to an rtl::OUStringBuffer, with no grouping.
|
inline |
A wrapper around rtl_math_doubleToUString that appends to an rtl::OUStringBuffer.
If a value represents +INF or -INF.
The sign bit may be queried with isSignBitSet().
If isFinite(d)==false and isInf(d)==false then NAN.
If a value is a valid argument for sin(), cos(), tan().
IEEE 754 specifies that absolute values up to 2^64 (=1.844e19) for the radian must be supported by trigonometric functions. Unfortunately, at least on x86 architectures, the FPU doesn't generate an error pattern for values >2^64 but produces erroneous results instead and sets only the "invalid operation" (IM) flag in the status word :-( Thus the application has to handle it itself.
|
inline |
A wrapper around rtl_math_round.
Set to +INF if bNegative==false or -INF if bNegative==true.
|
inline |
A wrapper around rtl_math_stringToDouble.
|
inline |
A wrapper around rtl_math_uStringToDouble.