Arc Forumnew | comments | leaders | submitlogin
2 points by conanite 5686 days ago | link | parent

in arc 2,

  arc> (coerce "1.234" 'int)
  1.234
arguably, this is incorrect, because 1.234 obviously isn't an integer, so arc3 improves on this by rounding. But (coerce "1.234" 'num) isn't available (in arc 2 or 3), so there's no way to use coerce for non-integers.


2 points by pg 5686 days ago | link

I added a clause so (coerce "1.234" 'num) works. Thanks.

-----

1 point by conanite 5686 days ago | link

Cool, thanks. My test scripts were unhappy.

-----