LibreOffice
LibreOffice 7.4 SDK C/C++ API Reference
Namespaces | Functions
math.hxx File Reference
#include "rtl/math.h"
#include "rtl/strbuf.hxx"
#include "rtl/string.hxx"
#include "rtl/ustring.hxx"
#include "rtl/ustrbuf.hxx"
#include "sal/mathconf.h"
#include "sal/types.h"
#include <cstddef>

Go to the source code of this file.

Namespaces

 rtl
 
 rtl::math
 

Functions

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