Numerical limits for floating point variables. More...
Functions | |
bool | valid (const FloatVal &n) |
Return whether float n is a valid number. | |
void | check (const FloatVal &n, const char *l) |
Check whether float n is a valid number, otherwise throw out of limits exception with information l. | |
Variables | |
const FloatNum | max = std::numeric_limits<FloatNum>::max() |
Largest allowed float value. | |
const FloatNum | min = -max |
Smallest allowed float value. | |
Numerical limits for floating point variables.
|
inline |
Return whether float n is a valid number.
Definition at line 39 of file limits.hpp.
|
inline |
Check whether float n is a valid number, otherwise throw out of limits exception with information l.
Definition at line 44 of file limits.hpp.