Garry's Mod Wiki

Garry's Mod Wiki

  number math.mod( number base, number modulator )

Description

We advise against using this. It may be changed or removed in a future update. This is removed in Lua versions later than what GMod is currently using. You should use the % operator or math.fmod instead.

Returns the modulus of the specified values. Same as math.fmod.

Arguments

1 number base
The base value
2 number modulator
Modulator

Returns

1 number
The calculated modulus

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...