Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Apparent Math.round bug

34 views
Skip to first unread message

Dr J R Stockton

unread,
Oct 16, 2012, 8:22:45 AM10/16/12
to
In IE8 & IE9, it appears that Math.round is implemented as in Note 2,
rather than as in the normative part, of the Math.round section of ECMA
262. It therefore fails with integers in the range 2^52 <= x < 2^53
(which are exact), due to rounding up at the addition stage.

--
(c) John Stockton, nr London, UK. For Mail, see Home Page. Turnpike, WinXP.
Web <http://www.merlyn.demon.co.uk/> - FAQ-type topics, acronyms, and links.
Command-prompt MiniTrue is useful for viewing/searching/altering files. Free,
DOS/Win/UNIX now 2.0.6; see <URL:http://www.merlyn.demon.co.uk/pc-links.htm>.
0 new messages