본문 바로가기

LISP

integer 및 float의 좌우 한계 값

CL-USER> (format t "~a (~r)~%" most-negative-fixnum most-negative-fixnum)
-536870912
(minus five hundred and thirty-six million eight hundred and seventy thousand nine hundred and twelve)
NIL

CL-USER> (format t "~a~%~r~%" most-positive-fixnum most-positive-fixnum)
536870911
five hundred and thirty-six million eight hundred and seventy thousand nine hundred and eleven
NIL

-----------------------------------------------------------------
CL-USER> (format t "~a~%" most-negative-short-float)
-3.4028172S38
NIL

CL-USER> (format t "~a~%" most-positive-short-float)
3.4028172S38
NIL

-----------------------------------------------------------------
CL-USER> (format t "~a~%" most-negative-single-float)
-3.4028235E38
NIL

CL-USER> (format t "~a~%" most-positive-single-float)
3.4028235E38
NIL

-----------------------------------------------------------------
CL-USER> (format t "~a~%" most-negative-double-float)
-1.7976931348623158D308
NIL

CL-USER> (format t "~a~%" most-positive-double-float)
1.7976931348623158D308
NIL

-----------------------------------------------------------------
CL-USER> (format t "~a~%" most-negative-long-float)
-1.7976931348623158D308
NIL

CL-USER> (format t "~a~%" most-positive-long-float)
1.7976931348623158D308
NIL

 

=======================================================

 


CL-USER> most-negative-double-float
-1.7976931348623158D308

CL-USER> most-negative-fixnum
-536870912

CL-USER> most-negative-long-float
-1.7976931348623158D308

CL-USER> most-negative-short-float
-3.4028172S38

CL-USER> most-negative-single-float
-3.4028235E38

CL-USER> most-positive-double-float
1.7976931348623158D308

CL-USER> most-positive-fixnum
536870911

CL-USER> most-positive-long-float
1.7976931348623158D308

CL-USER> most-positive-short-float
3.4028172S38

CL-USER> most-positive-single-float
3.4028235E38