To convert an integer to floating point, use the function float.
This returns number converted to floating point. If number is already a floating point number,
floatreturns it unchanged.
There are four functions to convert floating point numbers to integers; they differ in how they round. These functions accept integer arguments also, and return such arguments unchanged.
This returns number, converted to an integer by rounding downward (towards negative infinity).
If divisor is specified, number is divided by divisor before the floor is taken; this is the division operation that corresponds to
mod. Anarith-errorresults if divisor is 0.