math.fmod

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

Contents

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.

Arguments

number base

The base value.

Arguments

number modulator

The modulator.

Returns

number

The calculated modulus.
Personal tools
Navigation