Arc Forumnew | comments | leaders | submitlogin
1 point by coconutrandom 5585 days ago | link | parent

  arc> (load "erp.arc")
  nil
  arc> (is (erp:num 0.1) (erp:coerce 0.1 'num))
  (num 0.1): ".1"
  (coerce 0.1 (quote num)): 0.1
  nil
  arc> (is (erp:/ 1 10) (erp:num (/ 1 10)))
  (/ 1 10): 1/10
  (num (/ 1 10)): ".1"
  nil

Hmm, so neither 0.1 nor 1/10 is ".1"

I'm not sure what is supposed to happen but it's interesting.