I am trying to get the rounded off version of a list of numerics in Clojure.
For e.g. (Math/round 10.5)
gives me 11
as the answer which is fine. However, I try a similar approach using 'apply' - (apply Math/round (list 1.2 2.1 3.4))
which gives me an error. I was expecting (1 2 3)
as the output.
How to get a rounded off output from a list of numbers?