mirror of
https://github.com/louisrubet/rpn
synced 2024-12-28 09:58:52 +01:00
47 lines
487 B
Text
47 lines
487 B
Text
## MODE
|
|
default del
|
|
|
|
# std (1)
|
|
del
|
|
38 std
|
|
-> stack size should be 0
|
|
-> error should be 0
|
|
del
|
|
|
|
# std (2)
|
|
1 3 /
|
|
-> stack should be 0.33333333333333333333333333333333333333
|
|
del
|
|
|
|
# fix (1)
|
|
10 fix
|
|
1
|
|
-> stack should be 1.0000000000
|
|
del
|
|
|
|
# fix (2)
|
|
1 4 fix
|
|
-> stack should be 1.0000
|
|
del
|
|
|
|
# fix (3)
|
|
-1 fix
|
|
-> error should be 4
|
|
del
|
|
|
|
# sci (1)
|
|
1 12 sci
|
|
-> stack should be 1.000000000000e+00
|
|
del
|
|
|
|
# sci (2)
|
|
1 2 sci
|
|
-> stack should be 1.00e+00
|
|
del
|
|
|
|
# sci (3)
|
|
-1 sci
|
|
-> error should be 4
|
|
del
|
|
|
|
default
|