fakir/examples/float.fk

21 lines
361 B
Plaintext
Raw Normal View History

2023-09-24 12:22:01 +00:00
(assert= 7.2 7.20)
(assert= 4.7 (+. 3.2 1.5))
(assert= 3.2 (+. 3.2))
(assert= 0.0 (+.))
(assert= 1.7 (-. 3.2 1.5))
(assert= -1.5 (-. 1.5))
(assert= 0.0 (-.))
(assert= 77.4 (*. 21.5 3.6))
(assert= 3.0 (*. 3.0))
(assert= 1.0 (*.))
(assert= 0.57 (/. 1.14 2.0))
(assert= .25 (/. 4.0))
(assert= 1.0 (/.))
(assert= 1.5 (%. 75. 3.5))
(assert= 15.625 (^. 2.5 3.))