Supported INFINITY and NAN value in pfs_strtod().