# zero
Input: int(0)
Outut: int(0)
# negative 1 int
Input: int(-1)
Outut: int(1)
# positive 1 int
Input: int(1)
Outut: int(1)
# negative min int
Input: int(-9223372036854775808)
Outut: int(9223372036854775807)
# negative min int minus 1
Input: float(-9.223372036854776E+18)
Outut: int(9223372036854775807)
# negative min int times 2
Input: float(-1.8446744073709552E+19)
Outut:
Warning: The float -1.8446744073709552E+19 is not representable as an int, cast occurred in /in/LNMss on line 4
int(0)
# positive max int
Input: int(9223372036854775807)
Outut: int(9223372036854775807)
# positive max int plus 1
Input: float(9.223372036854776E+18)
Outut:
Warning: The float 9.223372036854776E+18 is not representable as an int, cast occurred in /in/LNMss on line 4
int(9223372036854775807)
# positive max int times 2
Input: float(1.8446744073709552E+19)
Outut:
Warning: The float 1.8446744073709552E+19 is not representable as an int, cast occurred in /in/LNMss on line 4
int(0)
# positive max int as string
Input: string(19) "9223372036854775807"
Outut: int(9223372036854775807)
# positive max int times 1000 as string
Input: string(22) "9223372036854775807000"
Outut: int(9223372036854775807)
Output for 8.5.0 - 8.5.1
# zero
Input: int(0)
Outut: int(0)
# negative 1 int
Input: int(-1)
Outut: int(1)
# positive 1 int
Input: int(1)
Outut: int(1)
# negative min int
Input: int(-9223372036854775808)
Outut: int(9223372036854775807)
# negative min int minus 1
Input: float(-9.223372036854776E+18)
Outut: int(9223372036854775807)
# negative min int times 2
Input: float(-1.8446744073709552E+19)
Outut:
Warning: The float -1.8446744073709552E+19 is not representable as an int, cast occurred in /in/LNMss on line 4
int(0)
# positive max int
Input: int(9223372036854775807)
Outut: int(9223372036854775807)
# positive max int plus 1
Input: float(9.223372036854776E+18)
Outut:
Warning: The float 9.223372036854776E+18 is not representable as an int, cast occurred in /in/LNMss on line 4
int(9223372036854775807)
# positive max int times 2
Input: float(1.8446744073709552E+19)
Outut:
Warning: The float 1.8446744073709552E+19 is not representable as an int, cast occurred in /in/LNMss on line 4
int(0)
# positive max int as string
Input: string(19) "9223372036854775807"
Outut: int(9223372036854775807)
# positive max int times 1000 as string
Input: string(22) "9223372036854775807000"
Outut:
Warning: The float-string "9223372036854775807000" is not representable as an int, cast occurred in /in/LNMss on line 4
int(9223372036854775807)
# zero
Input: int(0)
Outut: int(0)
# negative 1 int
Input: int(-1)
Outut: int(1)
# positive 1 int
Input: int(1)
Outut: int(1)
# negative min int
Input: int(-9223372036854775808)
Outut: int(9223372036854775807)
# negative min int minus 1
Input: float(-9.223372036854776E+18)
Outut: int(9223372036854775807)
# negative min int times 2
Input: float(-1.8446744073709552E+19)
Outut: int(0)
# positive max int
Input: int(9223372036854775807)
Outut: int(9223372036854775807)
# positive max int plus 1
Input: float(9.223372036854776E+18)
Outut: int(9223372036854775807)
# positive max int times 2
Input: float(1.8446744073709552E+19)
Outut: int(0)
# positive max int as string
Input: string(19) "9223372036854775807"
Outut: int(9223372036854775807)
# positive max int times 1000 as string
Input: string(22) "9223372036854775807000"
Outut: int(9223372036854775807)