jak-project/test/goalc/source_templates/with_game/tricky-floats.gc
2021-08-31 22:12:30 -04:00

5 lines
274 B
Common Lisp

(format #t "#x~X ~f #x~X~%"
(the int 26843545000.0) ;; check that float -> int truncates (previously wrong)
(the float #x100000001) ;; check that int -> float truncates
(the-as int -1.0) ;; check that float reg -> int reg sign extends
)