Integer.MAX_VALUE


1 Java[ | ]

  • Integer.MAX_VALUE
  • 2147483647
public class MyClass {
    public static void main(String args[]) {
        System.out.println( Integer.MAX_VALUE ); // 2147483647
    }
}

2 PHP[ | ]

  • PHP_INT_MAX
  • 9223372036854775807
  • 0x7fffffffffffffff
<?php
var_dump( PHP_INT_MAX );
# int(9223372036854775807)
var_dump( PHP_INT_MAX + 1 );
# float(9.2233720368548E+18)

var_dump( 9223372036854775807 );
# int(9223372036854775807)
var_dump( 9223372036854775807 + 1 );
# float(9.2233720368548E+18)

var_dump( 0x7fffffffffffffff );
# int(9223372036854775807)
var_dump( 0x7fffffffffffffff + 1 );
# float(9.2233720368548E+18)

3 Python[ | ]

  • unbounded
i = 10 ** 100
print(type(i))
print(i)
# <class 'int'>
# 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
j = 10 ** 200
print(type(j))
print(j)
<class 'int'>
# 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}