modulo MethodStatic

Return a modulo period.

  • Both a and period can be negative.
  • This function can be faster than the % operator for the common case when p > 0 and -p < a < 2p.

modulo(a: number, period: number): number

Parameter Type Description
a number  
period number  

Returns - number

Defined in

Last Updated: 23 November, 2024