Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the maximum value for an int32?

Tags:

integer

I can never remember the number. I need a memory rule.

like image 389
FlinkmanSV Avatar asked Sep 18 '08 17:09

FlinkmanSV


People also ask

What is the value of Int32?

Int32 is an immutable value type that represents signed integers with values that range from negative 2,147,483,648 (which is represented by the Int32. MinValue constant) through positive 2,147,483,647 (which is represented by the Int32. MaxValue constant. .

How high can you count with 32 bits?

The number 2,147,483,647 (or hexadecimal 7FFFFFFF16) is the maximum positive value for a 32-bit signed binary integer in computing.

How many numbers is Int32?

The Int32 value type represents signed integers with values ranging from negative 2,147,483,648 through positive 2,147,483,647.


1 Answers

It's 2,147,483,647. Easiest way to memorize it is via a tattoo.

like image 119
Ben Hoffstein Avatar answered Sep 19 '22 17:09

Ben Hoffstein