21 inline bool isNaN(
double d) {
25 inline bool isInf(
double d,
int* sign = 0) {
26 volatile double tmp = d;
28 if ((tmp == d) && ((tmp - d) != 0.0)) {
30 *sign = (d < 0.0 ? -1 : 1);
Utility functions for parsing numbers from strings.
Definition: compare_numbers.h:20