nanos world API Reference Unofficial documentation
Static function Shared Native

math.fmod

Returns the remainder of the division of <code>base</code> by <code>modulator</code> that rounds the quotient towards zero

Syntax

Lua
math.fmod(base, modulator)

Parameters

Name Type Default Description
base number The base value.
modulator number The modulator.

Returns

  • number