math.fmod
Returns the modulus of the specified values (remainder of x / y). 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.
math.fmod(x: number, y: number): number
Arguments
| Name | Description | Type |
|---|---|---|
| x | N/A | number |
| y | N/A | number |
Returns number