[openbeos] Re: new Screen preflet - round() missing

Jack Burton wrote:
> - There's a bug so that if you select the "other refresh" menu option, the 
> number gets truncated and not rounded (anyone knows why BeOS doesn't have 
> the round() function?)

Have you tried including math.h, it seems to have an assortment
of round functions.  I recall a recent discussion about round
being missing from PPC, use floorf (f for float, leave it off
for double) of (value + 0.5f).  Though there may be problems
with negative number rounding in that case.

- Alex



Other related posts: