• cremno's avatar
    use NAN and INFINITY · f57b9d15
    cremno authored
    The macro str_to_mrb_float (strto[df]) converts a string to a number,
    but these two macros can be used to directly get the special value.
    
    The NAN macro requires quiet NaN support, but so does str_to_mrb_float.
    
    This change also circumvents missing C99 support in Microsoft's C library.
    Its (or ISO C90's) strtod doesn't parse "nan" or "inf".
    f57b9d15
numeric.c 30.1 KB