php - Why is var_dump((int)(PHP_INT_MAX + 1)) a negative number? -


i pulled result here:

and interestingly, result of var_dump((int)(php_int_max + 1)) displayed negative number (in case of specific example, display int(-9223372036854775808)). again, key here candidate know value displayed negative number.

is int negative because adding 1 overflow integer bits , change bit representing sign of int? what's reason?


Comments

Popular posts from this blog

html - height not adding height to a empty div -

python - Robot Framework location and name of keyword -

Desktop Launcher for Python Script Starts Program in Wrong Path (Linux) -