Re: [AD] 4.9.20

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Tue, May 25, 2010 at 3:04 PM, Peter Wang <novalazy@xxxxxxxxxx> wrote:


Actually, round() is C99.


Does that mean we cannot use it? Could just use floor(x + 0.5) then.

Using (int)(x + 0.5) is a problem around the zero crossing and I'm never sure if the extra check for negative x or using round/floor is better then.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/