Xalan-C++ API Reference 1.12.0
|
#include <xalanc/PlatformSupport/DoubleSupport.hpp>
Classes | |
struct | addFunction |
struct | divideFunction |
struct | equalFunction |
struct | greaterThanFunction |
struct | greaterThanOrEqualFunction |
struct | lessThanFunction |
struct | lessThanOrEqualFunction |
struct | modulusFunction |
struct | multiplyFunction |
struct | negativeFunction |
struct | notEqualFunction |
union | NumberUnion |
struct | subtractFunction |
Static Public Member Functions | |
static void | initialize () |
Perform static initialization. | |
static void | terminate () |
Perform static shut down. | |
static bool | isNaN (double theNumber) |
Determine if target is not a number. | |
static bool | isPositiveInfinity (double theNumber) |
Determine if target is positive infinity. | |
static bool | isNegativeInfinity (double theNumber) |
Determine if target is negative infinity. | |
static bool | isPositiveZero (double theNumber) |
Determine if target is positive 0. | |
static bool | isNegativeZero (double theNumber) |
Determine if target is negative 0. | |
static double | getNaN () |
Double value that represents "not a number". | |
static double | getPositiveInfinity () |
Double value that represents positive infinity. | |
static double | getNegativeInfinity () |
Double value that represents negative infinity. | |
static bool | equal (double theLHS, double theRHS) |
Compare two double values, taking into account the fact that we must support IEEE 754. | |
static bool | notEqual (double theLHS, double theRHS) |
Compare two double values, taking into account the fact that we must support IEEE 754. | |
static bool | lessThan (double theLHS, double theRHS) |
Compare two double values, taking into account the fact that we must support IEEE 754. | |
static bool | lessThanOrEqual (double theLHS, double theRHS) |
Compare two double values, taking into account the fact that we must support IEEE 754. | |
static bool | greaterThan (double theLHS, double theRHS) |
Compare two double values, taking into account the fact that we must support IEEE 754. | |
static bool | greaterThanOrEqual (double theLHS, double theRHS) |
Compare two double values, taking into account the fact that we must support IEEE 754. | |
static double | add (double theLHS, double theRHS) |
Add two double values, taking into account the fact that we must support IEEE 754. | |
static double | subtract (double theLHS, double theRHS) |
Subtract two double values, taking into account the fact that we must support IEEE 754. | |
static double | multiply (double theLHS, double theRHS) |
Multiply two double values, taking into account the fact that we must support IEEE 754. | |
static double | divide (double theLHS, double theRHS) |
Divide two double values, taking into account the fact that we must support IEEE 754. | |
static double | modulus (double theLHS, double theRHS) |
Determine the modulus two double values, taking into account the fact that we must support IEEE 754. | |
static double | negative (double theDouble) |
Determine the negative of a double value, taking into account the fact that we must support IEEE 754. | |
static double | abs (double theDouble) |
Return the absolute value of theDouble. | |
static bool | isValid (const XalanDOMString &theString) |
Determine whether or not a string contains a valid floating point number. | |
static bool | isValid (const XalanDOMChar *theString) |
Determine whether or not a string contains a valid floating point number. | |
static double | toDouble (const XalanDOMString &theString, MemoryManager &theManager) |
Convert a string to a double value. | |
static double | toDouble (const XalanDOMChar *theString, MemoryManager &theManager) |
Convert a string to a double value. | |
static double | round (double theValue) |
Round a number according to the XPath rules. | |
static double | ceiling (double theValue) |
Returns the ceiling of a number according to the XPath rules. | |
static double | floor (double theValue) |
Returns the floor of a number according to the XPath rules. | |
Definition at line 54 of file DoubleSupport.hpp.
Return the absolute value of theDouble.
If theDouble is NaN, NaN is returned
theDouble | a number to fabs |
Add two double values, taking into account the fact that we must support IEEE 754.
theLHS | a number to add |
theRHS | a number to add |
Returns the ceiling of a number according to the XPath rules.
theValue | The value to round. |
Definition at line 548 of file DoubleSupport.hpp.
Divide two double values, taking into account the fact that we must support IEEE 754.
theLHS | a number to divide |
theRHS | a number to divide |
Compare two double values, taking into account the fact that we must support IEEE 754.
theLHS | a number to compare |
theRHS | a number to compare |
Returns the floor of a number according to the XPath rules.
theValue | The value to round. |
Definition at line 561 of file DoubleSupport.hpp.
Double value that represents "not a number".
Definition at line 155 of file DoubleSupport.hpp.
Double value that represents negative infinity.
Definition at line 177 of file DoubleSupport.hpp.
Double value that represents positive infinity.
Definition at line 166 of file DoubleSupport.hpp.
Compare two double values, taking into account the fact that we must support IEEE 754.
theLHS | a number to compare |
theRHS | a number to compare |
Compare two double values, taking into account the fact that we must support IEEE 754.
theLHS | a number to compare |
theRHS | a number to compare |
Perform static initialization.
See class PlatformSupportInit.
Determine if target is not a number.
theNumber | target number |
Definition at line 83 of file DoubleSupport.hpp.
Determine if target is negative infinity.
theNumber | target number |
Definition at line 115 of file DoubleSupport.hpp.
Determine if target is negative 0.
theNumber | target number |
Definition at line 139 of file DoubleSupport.hpp.
Determine if target is positive infinity.
theNumber | target number |
Definition at line 103 of file DoubleSupport.hpp.
Determine if target is positive 0.
theNumber | target number |
Definition at line 127 of file DoubleSupport.hpp.
|
static |
Determine whether or not a string contains a valid floating point number.
theString | The string to check. |
|
static |
Determine whether or not a string contains a valid floating point number.
theString | The string to check. |
Compare two double values, taking into account the fact that we must support IEEE 754.
theLHS | a number to compare |
theRHS | a number to compare |
Compare two double values, taking into account the fact that we must support IEEE 754.
theLHS | a number to compare |
theRHS | a number to compare |
Determine the modulus two double values, taking into account the fact that we must support IEEE 754.
theLHS | a number to divide |
theRHS | a number to divide |
Multiply two double values, taking into account the fact that we must support IEEE 754.
theLHS | a number to multiply |
theRHS | a number to multiply |
Determine the negative of a double value, taking into account the fact that we must support IEEE 754.
theDouble | a number to negate |
Compare two double values, taking into account the fact that we must support IEEE 754.
theLHS | a number to compare |
theRHS | a number to compare |
Definition at line 204 of file DoubleSupport.hpp.
Round a number according to the XPath rules.
theValue | The value to round. |
Subtract two double values, taking into account the fact that we must support IEEE 754.
theLHS | a number to subtract |
theRHS | a number to subtract |
Perform static shut down.
See class PlatformSupportInit.
|
static |
Convert a string to a double value.
Returns NaN if the string is not a valid floating point number.
theString | The string to convert. |
theManager | The MemoryManager instance to use. |
|
static |
Convert a string to a double value.
Returns NaN if the string is not a valid floating point number.
theString | The string to convert. |
theManager | The MemoryManager instance to use. |
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Tue Oct 10 2023 15:42:12 for Xalan-C++ API Reference by