24.119. Math.pow( ): compute xyECMAScript v124.119.1. SynopsisMath.pow(x, y) 24.119.1.1. Arguments
24.119.1.2. Returnsx to the power of y, xy 24.119.2. DescriptionMath.pow( ) computes x to the power of y. Any values of x and y may be passed to Math.pow( ). However, if the result is an imaginary or complex number, Math.pow( ) returns NaN. In practice, this means that if x is negative, y should be a positive or negative integer. Also, bear in mind that large exponents can easily cause floating-point overflow and return a value of Infinity. |
Wednesday, October 21, 2009
Section 24.119. Math.pow( ): compute xy
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment