]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/math.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of global functions
4 // Author: wxWidgets team
5 // Licence: wxWindows licence
6 /////////////////////////////////////////////////////////////////////////////
8 /** @addtogroup group_funcmacro_math */
12 Returns a non-zero value if @a x is neither infinite nor NaN (not a
13 number), returns 0 otherwise.
17 int wxFinite(double x
);
20 Returns a non-zero value if x is NaN (not a number), returns 0 otherwise.
24 bool wxIsNaN(double x
);
27 Converts the given array of 10 bytes (corresponding to 80 bits) to
28 a float number according to the IEEE floating point standard format
29 (aka IEEE standard 754).
31 @see wxConvertToIeeeExtended() to perform the opposite operation
33 wxFloat64
wxConvertFromIeeeExtended(const wxInt8
*bytes
);
36 Converts the given floating number @a num in a sequence of 10 bytes
37 which are stored in the given array @a bytes (which must be large enough)
38 according to the IEEE floating point standard format
39 (aka IEEE standard 754).
41 @see wxConvertFromIeeeExtended() to perform the opposite operation
43 void wxConvertToIeeeExtended(wxFloat64 num
, wxInt8
*bytes
);
46 Small wrapper around round().
48 int wxRound(double x
);
51 Returns true if both double values are identical. This is
52 only reliable if both values have been assigned the same
55 bool wxIsSameDouble(double x
, double y
);
58 Return true of @a x is exactly zero. This is only reliable
59 if it has been assigned 0.
61 bool wxIsNullDouble(double x
);