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 -

angularjs - Redirect to a new template in angular js -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -