<html> <head> <title>namespace math</title> <link rel="stylesheet" type="text/css" href="../../../cpp.css"> </head> <body> <div id="adc-cppref"> <a name="_top_"> </a><table class="navimain" border="0" cellpadding="1" cellspacing="0"> <tr align="center" valign="top"> <td class="navimain"> <a href="../../../index.html">Overview</a> </td> <td class="navimainself"> Namespace </td> <td class="navimainnone"> Class </td> <td class="navimain"> <a href="../../../index-files/index-1.html">Index</a> </td> <td class="navimain"> <a href="../../../help.html">Help</a> </td> </tr> </table> <table class="navisub" cellpadding="0" cellspacing="3"> <tr> <td> <font size="-2">NESTED NAMESPACES</font> | <font size="-2">CLASSES</font> | <font size="-2">STRUCTS</font> | <font size="-2">UNIONS</font> | <font size="-2">ENUMS</font> | <font size="-2">TYPEDEFS</font> | <a href="#ops"><font size="-2"><b>FUNCTIONS</b></font></a> | <font size="-2">CONSTANTS</font> | <font size="-2">VARIABLES</font></td> </tr> </table> <hr> <a href="../../../names/index.html" alt="Global Namespace in C++"><font size="+1"><b>::</b></font></a> <a href="../index.html" alt="namespace"><font size="+1"><b>rtl</b></font></a><font size="+1"> :: </font><div class="title"><h2>namespace math</h2> </div><hr> <hr> <a name="ops"> </a><table class="childlist" border="1" cellpadding="5" cellspacing="0" width="100%"> <tr class="subtitle"> <td colspan="2"><h4>Functions</h4> </td> </tr> <tr> <td>double <br> <a href="o-math.hxx.html#approxAdd-1210">approxAdd</a>( double a, double b );</td> <td width="50%"> Add two values. </td> </tr> <tr> <td>double <br> <a href="o-math.hxx.html#approxCeil-1213">approxCeil</a>( double a );</td> <td width="50%"> ceil()method taking approxEqual() into account. </td> </tr> <tr> <td>bool <br> <a href="o-math.hxx.html#approxEqual-1209">approxEqual</a>( double a, double b );</td> <td width="50%"> Test equality of two values with an accuracy of the magnitude of the given values scaled by 2^-48 (4 bits roundoff stripped). </td> </tr> <tr> <td>double <br> <a href="o-math.hxx.html#approxFloor-1212">approxFloor</a>( double a );</td> <td width="50%"> floor()method taking approxEqual() into account. </td> </tr> <tr> <td>double <br> <a href="o-math.hxx.html#approxSub-1211">approxSub</a>( double a, double b );</td> <td width="50%"> Substract two values (a-b). </td> </tr> <tr> <td>double <br> <a href="o-math.hxx.html#cos-1222">cos</a>( double d );</td> <td width="50%"> Safe cos(), returns NAN if not valid. </td> </tr> <tr> <td>rtl::OString <br> <a href="o-math.hxx.html#doubleToString-1199">doubleToString</a>( double fValue, rtl_math_StringFormat eFormat, sal_Int32 nDecPlaces, sal_Char cDecSeparator, const sal_Int32 * pGroups, sal_Char cGroupSeparator, bool bEraseTrailingDecZeros = false );</td> <td width="50%"> A wrapper around rtl_math_doubleToString. </td> </tr> <tr> <td>rtl::OString <br> <a href="o-math.hxx.html#doubleToString-1200">doubleToString</a>( double fValue, rtl_math_StringFormat eFormat, sal_Int32 nDecPlaces, sal_Char cDecSeparator, bool bEraseTrailingDecZeros = false );</td> <td width="50%"> A wrapper around rtl_math_doubleToString, with no grouping. </td> </tr> <tr> <td>rtl::OUString <br> <a href="o-math.hxx.html#doubleToUString-1201">doubleToUString</a>( double fValue, rtl_math_StringFormat eFormat, sal_Int32 nDecPlaces, sal_Unicode cDecSeparator, const sal_Int32 * pGroups, sal_Unicode cGroupSeparator, bool bEraseTrailingDecZeros = false );</td> <td width="50%"> A wrapper around rtl_math_doubleToUString. </td> </tr> <tr> <td>rtl::OUString <br> <a href="o-math.hxx.html#doubleToUString-1202">doubleToUString</a>( double fValue, rtl_math_StringFormat eFormat, sal_Int32 nDecPlaces, sal_Unicode cDecSeparator, bool bEraseTrailingDecZeros = false );</td> <td width="50%"> A wrapper around rtl_math_doubleToUString, with no grouping. </td> </tr> <tr> <td>void <br> <a href="o-math.hxx.html#doubleToUStringBuffer-1203">doubleToUStringBuffer</a>( 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 );</td> <td width="50%"> A wrapper around rtl_math_doubleToUString that appends to an rtl::OUStringBuffer. </td> </tr> <tr> <td>void <br> <a href="o-math.hxx.html#doubleToUStringBuffer-1204">doubleToUStringBuffer</a>( rtl::OUStringBuffer & rBuffer, double fValue, rtl_math_StringFormat eFormat, sal_Int32 nDecPlaces, sal_Unicode cDecSeparator, bool bEraseTrailingDecZeros = false );</td> <td width="50%"> A wrapper around rtl_math_doubleToUString that appends to an rtl::OUStringBuffer, with no grouping. </td> </tr> <tr> <td>bool <br> <a href="o-math.hxx.html#isFinite-1214">isFinite</a>( double d );</td> <td width="50%"> Tests whether a value is neither INF nor NAN. </td> </tr> <tr> <td>bool <br> <a href="o-math.hxx.html#isInf-1215">isInf</a>( double d );</td> <td width="50%"> If a value represents +INF or -INF. </td> </tr> <tr> <td>bool <br> <a href="o-math.hxx.html#isNan-1216">isNan</a>( double d );</td> <td width="50%"> Test on any QNAN or SNAN. </td> </tr> <tr> <td>bool <br> <a href="o-math.hxx.html#isSignBitSet-1217">isSignBitSet</a>( double d );</td> <td width="50%"> If the sign bit is set. </td> </tr> <tr> <td>bool <br> <a href="o-math.hxx.html#isValidArcArg-1220">isValidArcArg</a>( double d );</td> <td width="50%"> If a value is a valid argument for sin(), cos(), tan(). </td> </tr> <tr> <td>double <br> <a href="o-math.hxx.html#pow10Exp-1208">pow10Exp</a>( double fValue, int nExp );</td> <td width="50%"> A wrapper around rtl_math_pow10Exp. </td> </tr> <tr> <td>double <br> <a href="o-math.hxx.html#round-1207">round</a>( double fValue, int nDecPlaces = 0, rtl_math_RoundingMode eMode = rtl_math_RoundingMode_Corrected );</td> <td width="50%"> A wrapper around rtl_math_round. </td> </tr> <tr> <td>void <br> <a href="o-math.hxx.html#setInf-1218">setInf</a>( double * pd, bool bNegative );</td> <td width="50%"> Set to +INF if bNegative==false or -INF if bNegative==true. </td> </tr> <tr> <td>void <br> <a href="o-math.hxx.html#setNan-1219">setNan</a>( double * pd );</td> <td width="50%"> Set a QNAN. </td> </tr> <tr> <td>double <br> <a href="o-math.hxx.html#sin-1221">sin</a>( double d );</td> <td width="50%"> Safe sin(), returns NAN if not valid. </td> </tr> <tr> <td>double <br> <a href="o-math.hxx.html#stringToDouble-1205">stringToDouble</a>( const rtl::OString & rString, sal_Char cDecSeparator, sal_Char cGroupSeparator, rtl_math_ConversionStatus * pStatus, sal_Int32 * pParsedEnd );</td> <td width="50%"> A wrapper around rtl_math_stringToDouble. </td> </tr> <tr> <td>double <br> <a href="o-math.hxx.html#stringToDouble-1206">stringToDouble</a>( const rtl::OUString & rString, sal_Unicode cDecSeparator, sal_Unicode cGroupSeparator, rtl_math_ConversionStatus * pStatus, sal_Int32 * pParsedEnd );</td> <td width="50%"> A wrapper around rtl_math_uStringToDouble. </td> </tr> <tr> <td>double <br> <a href="o-math.hxx.html#tan-1223">tan</a>( double d );</td> <td width="50%"> Safe tan(), returns NAN if not valid. </td> </tr> </table> <hr> <a href="#_top_" class="objchapter">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright © 2008 Sun Microsystems, Inc.</p> </div> <!-- id="adc-cppref" --> </body> </html>