gerryjackson / forth2012-test-suite

Test programs for Forth 2012 and ANS Forth
72 stars 15 forks source link

Test for IEEE754 max value fails on 64-bit system #33

Closed leonwagner closed 2 years ago

leonwagner commented 2 years ago

This doesn't work on a 64-bit system:

\ IEEE754 max value (52 bit mantissa)
T{ hex ffffffff fffff decimal d>f f>d -> hex ffffffff fffff decimal }T

This works on both 32- and 64-bit systems:

\ IEEE754 max value (52 bit mantissa)
T{ hex fffffffffffff. decimal d>f f>d -> hex fffffffffffff. decimal }T
gerryjackson commented 2 years ago

Recommended change made - issue closed