Description
Used to divide two numbers and return only the remainder.
Syntax
result = number1 % number2
The % operator syntax has these parts:
Part
Description
number2
Any numeric expression.
Remarks
The modulus, or remainder, operator divides number1 by number2 (rounding floating-point numbers to integers) and returns only the remainder as result. For example, in the following expression, A (which is result) equals 5.
A = 19 % 6.7
For information on when a run-time error is generated by the % operator, please see the Arithmetic Operators table.
© 1996 by Microsoft Corporation.
file: /Techref/language/asp/js/166.htm,
2KB, , updated: 1996年11月22日 11:11, local time: 2025年10月7日 16:40,
©2025 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Questions?<A HREF="http://massmind.org/Techref/language/asp/js/166.htm"> Microsoft® JScript Language Reference </A>
Did you find what you needed?
Welcome to massmind.org!
Welcome to massmind.org!
.