[완료] GMP 사용시 integer의 최대값은 어디까지인가요?
글쓴이: avanwz / 작성시간: 일, 2011/03/27 - 9:39오후
현재 개인적으로 만들고있는 프로그램이 엄청난 크기의 정수를 다루고있는데 (자릿수가 백만을 넘깁니다)
처음에는 모든연산처리를 string으로 변환해서 저장하고 불러와서 연산게 했는데 속도면에서
비효율 적이라 java의 Bigint같은 방법을 찾던중 C의 gmp를 발견했습니다. 그런데 이 gmp가 무한대크기의
정수를 지원하는지, 최대값이 얼마인지를 찾기가 쉽지않네요. 혹시 아시는분 계신가요?
한줄로 질문은 요약하자면 GMP library에서 지원하는 정수의 최대값은 얼마인가요?
답변 갑사드립니다
Forums:
GMP
http://gmplib.org/ 에 보면
GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating point numbers. There is no practical limit to the precision except the ones implied by the available memory in the machine GMP runs on. GMP has a rich set of functions, and the functions have a regular interface. 이라고 되어있네요.
댓글 달기