The ECMAScript standard provides several function and operators that yield an integer value or remainder based on a floating-point value:
Math.abs() function
Math.ceil() function
Math.floor() function
Math.round() function
% Remainder
%= Remainder and assign to an LValue
Prev | Home | Next |
Integer promotion | Up | interface |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |