math.modf

Returns the integral and fractional part of its argument

Prototype

i, f = math.modf (v)

Description

Returns two numbers, the integral part of v and the fractional part of v

math.modf (10.2) --> 10  0.2

Lua functions

Topics