Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: rtl ::

namespace math



Functions

double
acosh( double fValue );
A wrapper around rtl_math_acosh.
double
approxAdd( double a, double b );
Add two values.
double
approxCeil( double a );
ceil()method taking approxValue() into account.
bool
approxEqual( double a, double b );
Test equality of two values with an accuracy of the magnitude of the given values scaled by 2^-48 (4 bits roundoff stripped).
double
approxFloor( double a );
floor()method taking approxValue() into account.
double
approxSub( double a, double b );
Substract two values (a-b).
double
approxValue( double fValue );
A wrapper around rtl_math_approxValue.
double
asinh( double fValue );
A wrapper around rtl_math_asinh.
double
atanh( double fValue );
A wrapper around rtl_math_atanh.
double
cos( double d );
Safe cos(), returns NAN if not valid.
rtl::OString
doubleToString( double fValue, rtl_math_StringFormat eFormat, sal_Int32 nDecPlaces, sal_Char cDecSeparator, const sal_Int32 * pGroups, sal_Char cGroupSeparator, bool bEraseTrailingDecZeros = false );
A wrapper around rtl_math_doubleToString.
rtl::OString
doubleToString( double fValue, rtl_math_StringFormat eFormat, sal_Int32 nDecPlaces, sal_Char cDecSeparator, bool bEraseTrailingDecZeros = false );
A wrapper around rtl_math_doubleToString, with no grouping.
rtl::OUString
doubleToUString( double fValue, rtl_math_StringFormat eFormat, sal_Int32 nDecPlaces, sal_Unicode cDecSeparator, const sal_Int32 * pGroups, sal_Unicode cGroupSeparator, bool bEraseTrailingDecZeros = false );
A wrapper around rtl_math_doubleToUString.
rtl::OUString
doubleToUString( double fValue, rtl_math_StringFormat eFormat, sal_Int32 nDecPlaces, sal_Unicode cDecSeparator, bool bEraseTrailingDecZeros = false );
A wrapper around rtl_math_doubleToUString, with no grouping.
void
doubleToUStringBuffer( rtl::OUStringBuffer & rBuffer, double fValue, rtl_math_StringFormat eFormat, sal_Int32 nDecPlaces, sal_Unicode cDecSeparator, const sal_Int32 * pGroups, sal_Unicode cGroupSeparator, bool bEraseTrailingDecZeros = false );
A wrapper around rtl_math_doubleToUString that appends to an rtl::OUStringBuffer.
void
doubleToUStringBuffer( rtl::OUStringBuffer & rBuffer, double fValue, rtl_math_StringFormat eFormat, sal_Int32 nDecPlaces, sal_Unicode cDecSeparator, bool bEraseTrailingDecZeros = false );
A wrapper around rtl_math_doubleToUString that appends to an rtl::OUStringBuffer, with no grouping.
double
erf( double fValue );
A wrapper around rtl_math_erf.
double
erfc( double fValue );
A wrapper around rtl_math_erfc.
double
expm1( double fValue );
A wrapper around rtl_math_expm1.
bool
isFinite( double d );
Tests whether a value is neither INF nor NAN.
bool
isInf( double d );
If a value represents +INF or -INF.
bool
isNan( double d );
Test on any QNAN or SNAN.
bool
isSignBitSet( double d );
If the sign bit is set.
bool
isValidArcArg( double d );
If a value is a valid argument for sin(), cos(), tan().
double
log1p( double fValue );
A wrapper around rtl_math_log1p.
double
pow10Exp( double fValue, int nExp );
A wrapper around rtl_math_pow10Exp.
double
round( double fValue, int nDecPlaces = 0, rtl_math_RoundingMode eMode = rtl_math_RoundingMode_Corrected );
A wrapper around rtl_math_round.
void
setInf( double * pd, bool bNegative );
Set to +INF if bNegative==false or -INF if bNegative==true.
void
setNan( double * pd );
Set a QNAN.
double
sin( double d );
Safe sin(), returns NAN if not valid.
double
stringToDouble( const rtl::OString & rString, sal_Char cDecSeparator, sal_Char cGroupSeparator, rtl_math_ConversionStatus * pStatus, sal_Int32 * pParsedEnd );
A wrapper around rtl_math_stringToDouble.
double
stringToDouble( const rtl::OUString & rString, sal_Unicode cDecSeparator, sal_Unicode cGroupSeparator, rtl_math_ConversionStatus * pStatus, sal_Int32 * pParsedEnd );
A wrapper around rtl_math_uStringToDouble.
double
tan( double d );
Safe tan(), returns NAN if not valid.

Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.