Garry's Mod Wiki

math.fmod

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.

Arguments

1 number base
The base value.
2 number modulator
The modulator.

Returns

1 number
The calculated modulus.

Page Links


Special Pages


Wikis

?

Render Time: 83ms

Session 0
DB GetPage 53
Generate Html 8
SaveChanges 8
Render Body 0
Render Sidebar 11