--- 1.1
string: 1.1
int: 1
string(3) "1.1"
string(8) "No error"
sprintf: 1.100000 1 1.1
number_format: 1
--- NAN
string:
Warning: unexpected NAN value was coerced to string in /in/TPOsd on line 5
NAN
int:
Warning: The float NAN is not representable as an int, cast occurred in /in/TPOsd on line 6
0
bool(false)
string(34) "Inf and NaN cannot be JSON encoded"
sprintf:
Warning: The float NAN is not representable as an int, cast occurred in /in/TPOsd on line 8
Warning: unexpected NAN value was coerced to string in /in/TPOsd on line 8
NaN 0 NAN
number_format: nan
--- INF
string: INF
int:
Warning: The float INF is not representable as an int, cast occurred in /in/TPOsd on line 6
0
bool(false)
string(34) "Inf and NaN cannot be JSON encoded"
sprintf:
Warning: The float INF is not representable as an int, cast occurred in /in/TPOsd on line 8
INF 0 INF
number_format: inf
--- 1.1
string: 1.1
int: 1
string(3) "1.1"
string(8) "No error"
sprintf: 1.100000 1 1.1
number_format: 1
--- NAN
string: NAN
int: 0
bool(false)
string(34) "Inf and NaN cannot be JSON encoded"
sprintf: NaN 0 NAN
number_format: nan
--- INF
string: INF
int: 0
bool(false)
string(34) "Inf and NaN cannot be JSON encoded"
sprintf: INF 0 INF
number_format: inf