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