[openbeos] Re: new Screen preflet - round() missing
- From: "Alexander G. M. Smith" <agmsmith@xxxxxxxxxx>
- To: openbeos@xxxxxxxxxxxxx
- Date: Sat, 23 Nov 2002 12:09:38 EST (-0500)
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
- Follow-Ups:
- [openbeos] Re: new Screen preflet - round() missing
- From: Jack Burton
Other related posts:
- » [openbeos] Re: new Screen preflet - round() missing
- » [openbeos] Re: new Screen preflet - round() missing
- [openbeos] Re: new Screen preflet - round() missing
- From: Jack Burton