sincerely
Singaporean
If you have not done so, read this full tutorial on how to use SGEXTN to build an application.
class SGLFloatConstants;
part of SGEXTN module SG_Math
static function class providing numeric constants
list of all including inherited members
preprocessor file inclusion directive: #include ‹SGLFloatConstants.h›
CMake target for BuildLah: SGEXTN::SG_Math
see this link for more information about BuildLah
parent class: (none)
children classes: (none)
static float eulerNumber();
static float goldenRatio();
static float log10OfEulerNumber();
static float log2OfEulerNumber();
static float naturalLogarithmOf10();
static float naturalLogarithmOf2();
static float pi();
static float squareRootOf2();
static float squareRootOf3();
SGLFloatConstants provides floating point numbers for numeric constants used in mathematics, such as pi and e.
Uses ‹numbers› from Standard Template Library
Returns Euler's Number, approximately 2.71828182845904
Returns the golden ratio, which is (1 + sqrt(5)) / 2.
Returns the base10 logarithm of Euler's Number.
Returns the base2 logarithm of Euler's Number.
Returns ln(10).
Returns ln(2).
Returns pi, approximately 3.1415926535897932384626433832795028841971
Returns sqrt(2).
Returns sqrt(3).
©2025 05524F.sg (Singapore)