This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 16528 - Rounding
Summary: Rounding
Status: RESOLVED WONTFIX
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Cameron McCormack
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-26 16:29 UTC by Marcos Caceres
Modified: 2012-03-27 00:15 UTC (History)
2 users (show)

See Also:


Attachments

Description Marcos Caceres 2012-03-26 16:29:41 UTC
The spec says "Round x to the nearest integer, choosing the even integer if it lies halfway between two."

Just wondering, why was ECMAScript ToInteger not used?
Comment 1 Marcos Caceres 2012-03-26 16:31:59 UTC
or even ECMAScript round() http://es5.github.com/#x15.8.2.15
Comment 2 Cameron McCormack 2012-03-27 00:15:44 UTC
It's what Boris suggested: http://lists.w3.org/Archives/Public/public-script-coord/2011JulSep/0258.html