Public Documents 2
Public Documents 2
math.ceil(x)
math.fmod(x, y)
On platforms using IEEE 754 binary floating point, the result of this
operation is always exactly representable: no rounding error is
introduced.
math.trunc(x)
Return x with the fractional part removed, leaving the integer part.
This rounds toward 0: trunc() is equivalent to floor() for positive x,
and equivalent to ceil() for negative x. If x is not a float, delegates
to x.__trunc__, which should return an Integral value.