« Bugzilla Issues Index
#1573 — Math.trunc(-0.5) should be -0
  
  
  - bug_id:
    1573
  
- creation_ts:
    2013-07-02 12:15:00 -0700
  
- short_desc:
    Math.trunc(-0.5) should be -0
  
- delta_ts:
    2013-07-15 17:04:07 -0700
  
- product:
    Draft for 6th Edition
  
- component:
    technical issue
  
- version:
    Rev 15: May 14, 2013 Draft
  
- rep_platform:
    All
  
- op_sys:
    All
  
- bug_status:
    RESOLVED
  
- resolution:
    FIXED
  
- priority:
    Normal
  
- bug_severity:
    enhancement
  
- everconfirmed:
    true
  
- reporter:
    Jason Orendorff
  
- assigned_to:
    Allen Wirfs-Brock
  
  
  
  - commentid:
    4348
  
- comment_count:
    0
  
- who:
    Jason Orendorff
  
- bug_when:
    2013-07-02 12:15:55 -0700
  
The spec for Math.trunc(x) does not explicitly state that:
* If x is greater than 0 and less than 1, the result is +0.
* If x is greater than -1 and less than 0, the result is -0.
(I filed this because the spec is otherwise very explicit about positive and negative zeros.)
  
  
  - commentid:
    4359
  
- comment_count:
    1
  
- who:
    Allen Wirfs-Brock
  
- bug_when:
    2013-07-08 13:02:15 -0700
  
fixed in rev16 editor's draft
  
  
  - commentid:
    4480
  
- comment_count:
    2
  
- who:
    Allen Wirfs-Brock
  
- bug_when:
    2013-07-15 17:04:07 -0700
  
fixed in rev16 draft.  July 15, 2013