To obtain a modulo in JavaScript in place of a n use a n n n. Mathfloor Mathceil and Mathround the way Mathtrunc works is very simple. Incrementing Little Big endian for typed arrays when using bitwise operators.
The question was how to disregard the decimal portion of the number.
In mathematics the result of a modulo operation is the remainder of an arithmetic division. Var a Mathceil060. In arithmetic the division of two integers produces a quotient and a remainder. For positive values the two are equivalent but when the dividend and divisor are of different signs they give different results.