 Version: 3.1.3

## Detailed Description

The functions in this section are typically related with math operations and floating point numbers.

## Functions

int wxFinite (double x)
Returns a non-zero value if x is neither infinite nor NaN (not a number), returns 0 otherwise. More...

unsigned int wxGCD (unsigned int u, unsigned int v)
Returns the greatest common divisor of the two given numbers. More...

bool wxIsNaN (double x)
Returns a non-zero value if x is NaN (not a number), returns 0 otherwise. More...

wxFloat64 wxConvertFromIeeeExtended (const wxInt8 *bytes)
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). More...

void wxConvertToIeeeExtended (wxFloat64 num, wxInt8 *bytes)
Converts the given floating number num in a sequence of 10 bytes which are stored in the given array bytes (which must be large enough) according to the IEEE floating point standard format (aka IEEE standard 754). More...

unsigned int wxCTZ (wxUint32 x)
Count the number of trailing zeros. More...

int wxRound (double x)
Small wrapper around round(). More...

bool wxIsSameDouble (double x, double y)
Returns true if both double values are identical. More...

bool wxIsNullDouble (double x)
Return true of x is exactly zero. More...

## Function Documentation

 wxFloat64 wxConvertFromIeeeExtended ( const wxInt8 * bytes )

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).

wxConvertToIeeeExtended() to perform the opposite operation
 void wxConvertToIeeeExtended ( wxFloat64 num, wxInt8 * bytes )

Converts the given floating number num in a sequence of 10 bytes which are stored in the given array bytes (which must be large enough) according to the IEEE floating point standard format (aka IEEE standard 754).

wxConvertFromIeeeExtended() to perform the opposite operation
 unsigned int wxCTZ ( wxUint32 x )

Count the number of trailing zeros.

This function returns the number of trailing zeros in the binary notation of its argument x. E.g. for x equal to 4, or 0b100, the return value is 2.

Parameters
 x Strictly positive, i.e. non-zero, 32 bit number.
Since
3.1.2
 double wxDegToRad ( double deg )

This function simply returns its argument multiplied by `M_PI/180` but is more readable than writing this expression directly.

Since
3.1.0
 int wxFinite ( double x )

Returns a non-zero value if x is neither infinite nor NaN (not a number), returns 0 otherwise.

Include file:

`#include <wx/math.h> `
 unsigned int wxGCD ( unsigned int u, unsigned int v )

Returns the greatest common divisor of the two given numbers.

Since
3.1.0

Include file:

`#include <wx/math.h> `
 bool wxIsNaN ( double x )

Returns a non-zero value if x is NaN (not a number), returns 0 otherwise.

Include file:

`#include <wx/math.h> `
 bool wxIsNullDouble ( double x )

Return true of x is exactly zero.

This is only reliable if it has been assigned 0.

 bool wxIsSameDouble ( double x, double y )

Returns true if both double values are identical.

This is only reliable if both values have been assigned the same value.

This function simply returns its argument multiplied by `180/M_PI` but is more readable than writing this expression directly.