]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/math.h
added support for wxCAL_SHOW_WEEK_NUMBERS to generic version of wxCalendarCtrl (...
[wxWidgets.git] / interface / wx / math.h
CommitLineData
23324ae1 1/////////////////////////////////////////////////////////////////////////////
7c913512 2// Name: math.h
e54c96f1 3// Purpose: interface of global functions
7c913512
FM
4// Author: wxWidgets team
5// RCS-ID: $Id$
6// Licence: wxWindows license
7/////////////////////////////////////////////////////////////////////////////
8
b21126db 9/** @addtogroup group_funcmacro_math */
7fa7088e
BP
10//@{
11
7c913512 12/**
7fa7088e
BP
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}
23324ae1
FM
17*/
18int wxFinite(double x);
19
7fa7088e
BP
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
bb324061
FM
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
c1009b93
RR
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
7fa7088e 64//@}
23324ae1 65