biginteger

BigInteger Class 1. BigInteger - 일반 자료형으로 표현할 수 있는 정수보다 더 큰 값을 표현하고자 할 때 사용 ※ BigInteger에는 수를 문자열에 써서 전달해야 함 // Example package sample; import java.math.*; // BigInteger public class Main { public static void main(String[] args) { // System.out.println(Long.MAX_VALUE); : Long의 최대 숫자 // System.out.println(Long.MIN_VALUE); : Long의 최소 숫자 // long num1 = 9223372036854775808L; Long의 범위를 벗어남 // BigInte..
NewBean
'biginteger' 태그의 글 목록