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

  • From: Jack Burton <burton666@xxxxxxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Sun, 24 Nov 2002 01:31:31 +0100

On 2002-11-23 at 18:09:38 [+0100], you wrote:

> Have you tried including math.h, it seems to have an assortment
> of round functions.  I recall a recent discussion about round

Yep, I tried, but my math.h doesn't have a round() function.

> 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.

I used the same trick.

Other related posts: