why the (sub) behavior like this?
Posted: Sun Jul 19, 2015 3:11 pm
Code: Select all
(sub 1.9 0.2) will work as I thought
but (sub 20000.9 20000.2) will not return 0.7 insead of
0.700000000000728
my newlisp is 10.6.0
Friends and Fans of newLISP
http://www.newlispfanclub.alh.net/forum/
http://www.newlispfanclub.alh.net/forum/viewtopic.php?f=16&t=4726
Code: Select all
(sub 1.9 0.2) will work as I thought
but (sub 20000.9 20000.2) will not return 0.7 insead of
0.700000000000728
Code: Select all
(format "%.30f" 20000.9)