Qt 4.8
Functions
qnumeric.cpp File Reference
#include "qnumeric.h"
#include "qnumeric_p.h"

Go to the source code of this file.

Functions

Q_CORE_EXPORT double qInf ()
 Returns the bit pattern for an infinite number as a double. More...
 
Q_CORE_EXPORT bool qIsFinite (double d)
 Returns true if the double {d} is a finite number. More...
 
Q_CORE_EXPORT bool qIsFinite (float f)
 Returns true if the float {f} is a finite number. More...
 
Q_CORE_EXPORT bool qIsInf (double d)
 Returns true if the double {d} is equivalent to infinity. More...
 
Q_CORE_EXPORT bool qIsInf (float f)
 Returns true if the float {f} is equivalent to infinity. More...
 
Q_CORE_EXPORT bool qIsNaN (double d)
 Returns true if the double {d} is not a number (NaN). More...
 
Q_CORE_EXPORT bool qIsNaN (float f)
 Returns true if the float {f} is not a number (NaN). More...
 
Q_CORE_EXPORT double qQNaN ()
 Returns the bit pattern of a quiet NaN as a double. More...
 
Q_CORE_EXPORT double qSNaN ()
 Returns the bit pattern of a signalling NaN as a double. More...
 

Function Documentation

◆ qInf()

Q_CORE_EXPORT double qInf ( )

Returns the bit pattern for an infinite number as a double.

Definition at line 90 of file qnumeric.cpp.

Referenced by QTextStreamPrivate::getReal(), QDeclarativeJS::integerFromString(), and QScript::integerFromString().

90 { return qt_inf(); }
static double qt_inf()
Definition: qnumeric_p.h:65

◆ qIsFinite() [1/2]

Q_CORE_EXPORT bool qIsFinite ( double  d)

Returns true if the double {d} is a finite number.

Definition at line 60 of file qnumeric.cpp.

60 { return qt_is_finite(d); }
double d
Definition: qnumeric_p.h:62
static bool qt_is_finite(double d)
Definition: qnumeric_p.h:197

◆ qIsFinite() [2/2]

Q_CORE_EXPORT bool qIsFinite ( float  f)

Returns true if the float {f} is a finite number.

Definition at line 75 of file qnumeric.cpp.

75 { return qt_is_finite(f); }
static bool qt_is_finite(double d)
Definition: qnumeric_p.h:197

◆ qIsInf() [1/2]

Q_CORE_EXPORT bool qIsInf ( double  d)

◆ qIsInf() [2/2]

Q_CORE_EXPORT bool qIsInf ( float  f)

Returns true if the float {f} is equivalent to infinity.

Definition at line 65 of file qnumeric.cpp.

65 { return qt_is_inf(f); }
static bool qt_is_inf(double d)
Definition: qnumeric_p.h:169

◆ qIsNaN() [1/2]

Q_CORE_EXPORT bool qIsNaN ( double  d)

◆ qIsNaN() [2/2]

Q_CORE_EXPORT bool qIsNaN ( float  f)

Returns true if the float {f} is not a number (NaN).

Definition at line 70 of file qnumeric.cpp.

70 { return qt_is_nan(f); }
static bool qt_is_nan(double d)
Definition: qnumeric_p.h:183

◆ qQNaN()

Q_CORE_EXPORT double qQNaN ( )

Returns the bit pattern of a quiet NaN as a double.

Definition at line 85 of file qnumeric.cpp.

85 { return qt_qnan(); }
static double qt_qnan()
Definition: qnumeric_p.h:95

◆ qSNaN()

Q_CORE_EXPORT double qSNaN ( )

Returns the bit pattern of a signalling NaN as a double.

Definition at line 80 of file qnumeric.cpp.

Referenced by QScript::DateTimeToMs(), QTextStreamPrivate::getReal(), QDeclarativeJS::integerFromString(), and QScript::integerFromString().

80 { return qt_snan(); }
static double qt_snan()
Definition: qnumeric_p.h:80