Math

math.modf

Returns the integral part of x and the fractional part of x.

Syntax

modf(x: number)  returns  integer 2. number