]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/math.h
Add wxFileName::SetPermissions().
[wxWidgets.git] / interface / wx / math.h
CommitLineData
23324ae1 1/////////////////////////////////////////////////////////////////////////////
7c913512 2// Name: math.h
e54c96f1 3// Purpose: interface of global functions
7c913512 4// Author: wxWidgets team
526954c5 5// Licence: wxWindows licence
7c913512
FM
6/////////////////////////////////////////////////////////////////////////////
7
b21126db 8/** @addtogroup group_funcmacro_math */
7fa7088e
BP
9//@{
10
7c913512 11/**
7fa7088e
BP
12 Returns a non-zero value if @a x is neither infinite nor NaN (not a
13 number), returns 0 otherwise.
14
15 @header{wx/math.h}
23324ae1
FM
16*/
17int wxFinite(double x);
18
7fa7088e
BP
19/**
20 Returns a non-zero value if x is NaN (not a number), returns 0 otherwise.
21
22 @header{wx/math.h}
23*/
24bool wxIsNaN(double x);
25
bb324061
FM
26/**
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).
30
31 @see wxConvertToIeeeExtended() to perform the opposite operation
32*/
33wxFloat64 wxConvertFromIeeeExtended(const wxInt8 *bytes);
34
35/**
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).
40
41 @see wxConvertFromIeeeExtended() to perform the opposite operation
42*/
43void wxConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes);
44
c1009b93
RR
45/**
46 Small wrapper around round().
47*/
48int wxRound(double x);
49
50/**
51 Returns true if both double values are identical. This is
52 only reliable if both values have been assigned the same
53 value.
54*/
55bool wxIsSameDouble(double x, double y);
56
57/**
58 Return true of @a x is exactly zero. This is only reliable
59 if it has been assigned 0.
60*/
61bool wxIsNullDouble(double x);
62
7fa7088e 63//@}
23324ae1 64