Two-argument round/ceil/floor/trunk were pretty recent additions, and might not be in the Windows binary release yet.
If you need them now, you can use this snippet:
for f in (:round, :ceil, :floor, :trunc)
@eval begin
function ($f)(x, digits::Integer, base::Integer)
og = _round_og(digits, base)
($f)(float(x) / og) * og
end
($f)(x, digits) = ($f)(x, digits, 10)
end
end
On Sunday, October 7, 2012 3:00:21 PM UTC-5, Stéphane Laurent wrote:
For instance
round(pi,3)
no method round(Float32,Int32)
Le dimanche 7 octobre 2012 01:26:47 UTC+2, Jeff Bezanson a écrit :