3f66f6a5b3
This keyword is not expanded by Git which means it's not replaced with the correct revision value in the releases made using git-based scripts and it's confusing to have lines with unexpanded "$Id$" in the released files. As expanding them with Git is not that simple (it could be done with git archive and export-subst attribute) and there are not many benefits in having them in the first place, just remove all these lines. If nothing else, this will make an eventual transition to Git simpler. Closes #14487. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
65 lines
1.7 KiB
C
65 lines
1.7 KiB
C
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: math.h
|
|
// Purpose: interface of global functions
|
|
// Author: wxWidgets team
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
/** @addtogroup group_funcmacro_math */
|
|
//@{
|
|
|
|
/**
|
|
Returns a non-zero value if @a x is neither infinite nor NaN (not a
|
|
number), returns 0 otherwise.
|
|
|
|
@header{wx/math.h}
|
|
*/
|
|
int wxFinite(double x);
|
|
|
|
/**
|
|
Returns a non-zero value if x is NaN (not a number), returns 0 otherwise.
|
|
|
|
@header{wx/math.h}
|
|
*/
|
|
bool wxIsNaN(double x);
|
|
|
|
/**
|
|
Converts the given array of 10 bytes (corresponding to 80 bits) to
|
|
a float number according to the IEEE floating point standard format
|
|
(aka IEEE standard 754).
|
|
|
|
@see wxConvertToIeeeExtended() to perform the opposite operation
|
|
*/
|
|
wxFloat64 wxConvertFromIeeeExtended(const wxInt8 *bytes);
|
|
|
|
/**
|
|
Converts the given floating number @a num in a sequence of 10 bytes
|
|
which are stored in the given array @a bytes (which must be large enough)
|
|
according to the IEEE floating point standard format
|
|
(aka IEEE standard 754).
|
|
|
|
@see wxConvertFromIeeeExtended() to perform the opposite operation
|
|
*/
|
|
void wxConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes);
|
|
|
|
/**
|
|
Small wrapper around round().
|
|
*/
|
|
int wxRound(double x);
|
|
|
|
/**
|
|
Returns true if both double values are identical. This is
|
|
only reliable if both values have been assigned the same
|
|
value.
|
|
*/
|
|
bool wxIsSameDouble(double x, double y);
|
|
|
|
/**
|
|
Return true of @a x is exactly zero. This is only reliable
|
|
if it has been assigned 0.
|
|
*/
|
|
bool wxIsNullDouble(double x);
|
|
|
|
//@}
|
|
|