Garry's Mod Wiki

Garry's Mod Wiki

  number math.fmod( number base, number modulator )

Description

Returns the modulus of the specified values.

While this is similar to the % operator, it will return a negative value if the first argument is negative, whereas the % operator will return a positive value even if the first operand is negative.

This function is also slower than the % operator.

Arguments

1 number base
The base value.
2 number modulator
The 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...