|
![](/i/fill.gif) |
On Tue, 22 Jun 2004 14:22:07 -0400, "Slime" <fak### [at] email address> wrote:
> > Is there any way to round a float to the nearest whole number.
>
> I'm not sure why there's no round() function, but here, this should work:
>
> #macro round(x)
> floor(x+0.5)
> #end
IMO
#declare round=function(x){floor(x+0.5)};
would be better.
ABX
Post a reply to this message
|
![](/i/fill.gif) |