Functions | |
template<typename T > | |
bool | IsPrecise (T val) |
Check if floating point value is a precise representation of an integer. |
bool SgUctValueUtil::IsPrecise | ( | T | val | ) |
Check if floating point value is a precise representation of an integer.
When SgUctValue is used for counts, the search should abort when the value is no longer precise, because incrementing it further will not change its value anymore.
T | The floating point type |
true
if value is less or equal (r: radix, d: number of the digits in the mantissa of the type) Definition at line 52 of file SgUctValue.h.
Referenced by SgUctSearch::CheckAbortSearch().