math.mod

From Garry's Mod
Jump to: navigation, search
 math.mod( )

Contents

Description

This feature is deprecated.
You should avoid using it as it may be removed in a future version.

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

number base

The base value

Arguments

number modulator

Modulator

Returns

number

The calculated modulus
Personal tools
Navigation