On Tue, 24 Jun 2014 18:27:57 +0200
"Roberto E. Vargas Caballero" <[email protected]> wrote:

> This solution begins to be too much complex. In this case I begin to
> agree with Martti, and I think the best solution is to use ceil.

We must think if it is really necessary to do the
FLT_EPSILON-check.

We are dealing with floats with at most 2 decimal places. I propose we
just go for

CEIL(x) ((int)(x) + ((x) > 0 && (int)(x) != (x)))

Cheers

FRIGN

-- 
FRIGN <[email protected]>

Reply via email to