SHIP:Data Types:Constant

From Serious Documentation
Jump to: navigation, search

See Also

Constant

Constants used in SHIP.

Constant Value Description
M_1_PI 0.31830988618379067154f 1/π
M_2_PI 0.63661977236758134308f 2/π
M_2_SQRTPI 1.12837916709551257390f 2/√π
M_E 2.7182818284590452354f e
M_LN10 2.30258509299404568402f ln 10; log_e 10; log of 10 base e
M_LN2 0.69314718055994530942f ln 2; log_e 2; log of 2 base e
M_LOG10E 0.43429448190325182765f log_10 e; log of e base 10
M_LOG2E 1.4426950408889634074f log_2 e; log of e base 2
M_MAX_BYTE 127 2^7 - 1
M_MAX_DIM 32767 Maximum dimension value
M_MAX_INTEGER 2,147,483,647 2^31 - 1
M_MAX_SHORT 32,767 2^15 -1
M_MAX_LONG 9,223,372,036,854,775,807 2^63 - 1
M_MIN_DIM -32,511 Minimum dimension value
M_MIN_INTEGER -2,147,483,648 -(2^31)
M_MIN_LONG -9,223,372,036,854,775,808 -(2^63)
M_MIN_SHORT -32,768 -(2^15)
M_NAN_DIM -32,768 Dimension unset
M_PI 3.14159265358979323846f π
M_PI_2 1.57079632679489661923f π/2
M_PI_4 0.78539816339744830962f π/4
M_SQRT1_2 0.70710678118654752440f 1/√2
M_SQRT_2 0.70710678118654752440f √2

Examples