Since these are trivial functions implemented as macros and using integer conversion, did that.
Note that we correct the value of the ceil() function for negative values (i.e. while the ceil(-5.0) == -5.0, the ceil(-5.1) == -5.0 also, and not -6.0 as was being returned).
Unless you wanted sign(x) * ceil(abs(x)) which is something else entirely.
Since these are trivial functions implemented as macros and using integer conversion, did that.
Note that we correct the value of the ceil() function for negative values (i.e. while the ceil(-5.0) == -5.0, the ceil(-5.1) == -5.0 also, and not -6.0 as was being returned).
Unless you wanted
sign(x) * ceil(abs(x))
which is something else entirely.