Opened 8 years ago

Last modified 8 years ago

#16546 closed defect

dojo/number#round documentation — at Version 2

Reported by: mm Owned by: Adam Peller
Priority: undecided Milestone: 1.9
Component: Documentation Version: 1.8.3
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by bill)

Both reference guide and live docs have wrong code:

// Outputs "0.0" in IE
// Outputs "1.0" in other browsers
console.log((0.9).toFixed(1));

are you really sure this is true ?

Change History (2)

comment:1 in reply to:  description Changed 8 years ago by mm

Replying to mm:

Both reference guide and live docs have wrong code:

Outputs "0.0" in IE Outputs "1.0" in other browsers console.log((0.9).toFixed(1));

are you really sure this is true ?

http://dojotoolkit.org/reference-guide/1.8/dojo/number.html#round

comment:2 Changed 8 years ago by bill

Component: GeneralDocumentation
Description: modified (diff)
Owner: set to Adam Peller
Status: newassigned

That's from peller's original checkin of that doc page. IE return 0.9 for me, not 0.0. Didn't try other browsers.

Note: See TracTickets for help on using tickets.