]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/math.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of global functions
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
9 /** @addtogroup group_funcmacro_math */
13 Returns a non-zero value if @a x is neither infinite nor NaN (not a
14 number), returns 0 otherwise.
18 int wxFinite(double x
);
21 Returns a non-zero value if x is NaN (not a number), returns 0 otherwise.
25 bool wxIsNaN(double x
);
28 Converts the given array of 10 bytes (corresponding to 80 bits) to
29 a float number according to the IEEE floating point standard format
30 (aka IEEE standard 754).
32 @see wxConvertToIeeeExtended() to perform the opposite operation
34 wxFloat64
wxConvertFromIeeeExtended(const wxInt8
*bytes
);
37 Converts the given floating number @a num in a sequence of 10 bytes
38 which are stored in the given array @a bytes (which must be large enough)
39 according to the IEEE floating point standard format
40 (aka IEEE standard 754).
42 @see wxConvertFromIeeeExtended() to perform the opposite operation
44 void wxConvertToIeeeExtended(wxFloat64 num
, wxInt8
*bytes
);
47 Small wrapper around round().
49 int wxRound(double x
);
52 Returns true if both double values are identical. This is
53 only reliable if both values have been assigned the same
56 bool wxIsSameDouble(double x
, double y
);
59 Return true of @a x is exactly zero. This is only reliable
60 if it has been assigned 0.
62 bool wxIsNullDouble(double x
);