CONSTANTS

Maximum float value

float a = MAXFLOAT;

This constant represents the maximum value that is not infinity for a single precision float scalar.

Huge float value

float a = HUGE_VALF;

This constant represents the positive infinity value for a single precision float scalar.

Infinity

float a = INFINITY;

This constant represents positive or unsigned infinity value for a single precision float scalar.

Not a number

float a = NAN;

This constant represents a quiet NAN value for a single precision float scalar.

Euler’s number

float a = M_E_F;

This constant represents Euler’s number for a single precision float scalar.

Binary logarithm of Euler’s number

float a = M_LOG2E_F;

This constant represents the binary logarithm of Euler’s number for a single precision float scalar.

Decimal logarithm of Euler’s number

float a = M_LOG10E_F;

This constant represents the decimal logarithm of Euler’s number for a single precision float scalar.

Natural logarithm of two

float a = M_LN2_F;

This constant represents the natural logarithm of the number 2 for a single precision float scalar.

Natural logarithm of two

float a = M_LN10_F;

This constant represents the natural logarithm of the number 10 for a single precision float scalar.

Pi

float a = M_PI_F;

This constant represents the number π for a single precision float scalar.

Pi divided by two

float a = M_PI_2_F;

This constant represents the number π / 2 for a single precision float scalar.

Pi divided by four

float a = M_PI_4_F;

This constant represents the number π / 4 for a single precision float scalar.

One divided by pi

float a = M_1_PI_F;

This constant represents the number 1 / π for a single precision float scalar.

Two divided by pi

float a = M_2_PI_F;

This constant represents the number 2 / π for a single precision float scalar.

Two divided by square root of pi

float a = M_2_SQRTPI_F;

This constant represents the number 2 / √π for a single precision float scalar.

Square root of two

float a = M_SQRT2_F;

This constant represents the number √2 for a single precision float scalar.

One divided by square root of two

float a = M_SQRT1_2_F;

This constant represents the number 1 / √2 for a single precision float scalar.

Maximum float value

half a = MAXHALF;

This constant represents the maximum value that is not infinity for a half precision float scalar.

Huge float value

half a = HUGE_VALH;

This constant represents the positive infinity value for a half precision float scalar.

Euler’s number

half a = M_E_H;

This constant represents Euler’s number for a half precision float scalar.

Binary logarithm of Euler’s number

half a = M_LOG2E_H;

This constant represents the binary logarithm of Euler’s number for a half precision float scalar.

Decimal logarithm of Euler’s number

half a = M_LOG10E_H;

This constant represents the decimal logarithm of Euler’s number for a half precision float scalar.

Natural logarithm of two

half a = M_LN2_H;

This constant represents the natural logarithm of the number 2 for a half precision float scalar.

Natural logarithm of two

half a = M_LN10_H;

This constant represents the natural logarithm of the number 10 for a half precision float scalar.

Pi

half a = M_PI_H;

This constant represents the number π for a half precision float scalar.

Pi divided by two

half a = M_PI_2_H;

This constant represents the number π / 2 for a half precision float scalar.

Pi divided by four

half a = M_PI_4_H;

This constant represents the number π / 4 for a half precision float scalar.

One divided by pi

half a = M_1_PI_H;

This constant represents the number 1 / π for a half precision float scalar.

Two divided by pi

half a = M_2_PI_H;

This constant represents the number 2 / π for a half precision float scalar.

Two divided by square root of pi

half a = M_2_SQRTPI_H;

This constant represents the number 2 / √π for a half precision float scalar.

Square root of two

half a = M_SQRT2_H;

This constant represents the number √2 for a half precision float scalar.

One divided by square root of two

half a = M_SQRT1_2_H;

This constant represents the number 1 / √2 for a half precision float scalar.