> floor(A) Floor of A. Returns the largest integer less than A. Rounds
> down to the next lower integer.
>
> And you can use A - int(A) to see if the fractional part is > 0.5
Or just
floor( A + 0.5 )
(Although this will cause -3.5 to be rounded to -3, which I'm not sure is
correct.)
- Slime
[ http://www.slimeland.com/ ]
Post a reply to this message
|