Subj : Re: spidermonkey docu To : Sterling Bates From : Brendan Eich Date : Fri Apr 09 2004 05:53 pm Sterling Bates wrote: > "Brendan Eich" wrote in message > news:4075F5FF.7020504@meer.net... > >>You want to keep the part about out of range, perhaps specifying the >>range of a 32-bit signed integer. Saying "not a valid number" does not >>mean the same thing -- if anything, it means v is a NaN. > > > See if this update meets with what you're saying. > > >>Also, can you attach patches in a separate MIME part with the right MIME >>type (text/plain, I guess)? Thanks, > > > I thought I had...maybe Outlook Express will do it right this time :) Great! I'll update the docs. /be > > Sterling > > > > 1839c1839 > < JS_ValueToInt32 converts a specified JS value, v, to a JS double, and then to a 32-bit integer, if it fits. If the double is out of range, JS_ValueToInt32 reports an error and conversion fails. The double rounded to the nearest integer value.

> --- > >> JS_ValueToInt32 converts a specified JS value, v, to a 32-bit integer (-2147483648 to 2147483647). If v is NaN, or a double and out of the 32-bit range, JS_ValueToInt32 reports an error and conversion fails. A double is rounded to the nearest integer value.

.