General Utility Library for C++14
2.7

The General Utility Library provides several functions dealing with numbers.
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 floatingpoint 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 unitsinthelastplace (ULPs).
bit_set(): Set a bit in an integral value.
bit_reset(): Clear a bit in an integral value.
bit_flip(): Flip a bit in an integral value.
bit_test(): Test a bit in an integral value.