Arc Forumnew | comments | leaders | submitlogin
4 points by eds 6104 days ago | link | parent

  arc> (round 4.5)
  4
  arc> (roundup 4.5)
  5
Or said another way,

  arc> (map round (map [+ _ 1/2] '(0 1 2 3 4 5 6)))
  (0 2 2 4 4 6 6)
  arc> (map roundup (map [+ _ 1/2] '(0 1 2 3 4 5 6)))
  (1 2 3 4 5 6 7)


2 points by rincewind 6103 days ago | link

Thank you!

I think the docstrings on anarki should say that round does unbiased rounding.

-----