sincerely
Singaporean
If you have not done so, read this full tutorial on how to use SGEXTN to build an application.
class SGLFloatLimits;
part of SGEXTN module SG_Math
static function class providing floating point limits
list of all including inherited members
preprocessor file inclusion directive: #include ‹SGLFloatLimits.h›
CMake target for BuildLah: SGEXTN::SG_Math
see this link for more information about BuildLah
parent class: (none)
children classes: (none)
static float denormalisedMaximumNegative();
static float denormalisedMinimumPositive();
static bool isInfinite(float x);
static bool isNotANumber(float x);
static float maximumFinite();
static float maximumNegative();
static float mimimumFinite();
static float minimumPositive();
static float negativeInfinity();
static float notANumber();
static float positiveInfinity();
static float relativeIncrementGap();
SGLFloatLimits provides floating point numbers for limits of what the standard can represent, such as the largest possible float and the smallest nonzero float.
Uses ‹numeric_limits› from Standard Template Library
Returns maximum negative floating point number that can be represented.
This includes denormalised floating point numbers which do not have full precision.
Returns minimum positive floating point number that can be represented.
This includes denormalised floating point numbers which do not have full precision.
Returns if x is positive infinity or negative infinity.
Returns if x is a NaN.
Returns maximum finite floating point number.
Returns maximum negative floating point number with full precision.
Returns minimum finite floating point number, this is negative.
Returns minimum positive floating point number with full precision.
Returns negative infinity.
Returns a NaN.
Returns positive infinity.
Returns the difference between 1 and the next floating point number that can be represented.
This provides the percentage error in floating point precision.
©2025 05524F.sg (Singapore)