]> git.saurik.com Git - wxWidgets.git/blame_incremental - interface/wx/math.h
don't place NULL pointers in the GDK window array in GTKGetWindow()
[wxWidgets.git] / interface / wx / math.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: math.h
3// Purpose: interface of global functions
4// Author: wxWidgets team
5// RCS-ID: $Id$
6// Licence: wxWindows license
7/////////////////////////////////////////////////////////////////////////////
8
9/** @addtogroup group_funcmacro_math */
10//@{
11
12/**
13 Returns a non-zero value if @a x is neither infinite nor NaN (not a
14 number), returns 0 otherwise.
15
16 @header{wx/math.h}
17*/
18int wxFinite(double x);
19
20/**
21 Returns a non-zero value if x is NaN (not a number), returns 0 otherwise.
22
23 @header{wx/math.h}
24*/
25bool wxIsNaN(double x);
26
27/**
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).
31
32 @see wxConvertToIeeeExtended() to perform the opposite operation
33*/
34wxFloat64 wxConvertFromIeeeExtended(const wxInt8 *bytes);
35
36/**
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).
41
42 @see wxConvertFromIeeeExtended() to perform the opposite operation
43*/
44void wxConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes);
45
46/**
47 Small wrapper around round().
48*/
49int wxRound(double x);
50
51/**
52 Returns true if both double values are identical. This is
53 only reliable if both values have been assigned the same
54 value.
55*/
56bool wxIsSameDouble(double x, double y);
57
58/**
59 Return true of @a x is exactly zero. This is only reliable
60 if it has been assigned 0.
61*/
62bool wxIsNullDouble(double x);
63
64//@}
65