General Utility Library for C++14
2.11
|
abs(): Calculate the absolute value, even for unsigned types.
clamp(): Coerce a value to be within a given range.
gcd(): Calculate the greatest common divisor of two integers.
lcm(): Calculate the least common multiple of two integers.
to_number(): Convert an ASCII string_view into an integer or floating-point number.
within_abs(): Determine if two numbers are almost equal, allowing for an absolute difference.
within_orders(): Determine if two numbers are almost equal, comparing only some significant digits.
within_ulp(): Determine if two numbers are almost equal, allowing for a difference of a given number of units-in-the-last-place (ULPs).