rpn/test/01-mode.txt

42 lines
419 B
Text

## MODE
default erase
# std (1)
erase
1
10 std
-> stack should be 1
erase
# std (2)
1 3 /
-> stack should be 0.3333333333
erase
# std (3)
1 3 / 3 std
-> stack should be 0.333
erase
# fix (1)
10 fix
1
-> stack should be 1.0000000000
erase
# fix (2)
1 4 fix
-> stack should be 1.0000
erase
# sci (1)
1 12 sci
-> stack should be 1.000000000000e+00
erase
# sci (2)
1 2 sci
-> stack should be 1.00e+00
erase
default