Closed Bug 478804 Opened 16 years ago Closed 6 years ago

Number toExponential() with no arguments returns truncated value.

Categories

(Tamarin Graveyard :: Virtual Machine, defect, P2)

x86
All
defect

Tracking

(Not tracked)

RESOLVED WONTFIX
Q1 12 - Brannan

People

(Reporter: jodyer, Unassigned)

References

Details

as: var x = 77.1234; print(x.toExponential()); Actual Results: returns 7e+1 Expected Results: 7.71234e+1 Spidermonkey also returns 7.71234e+1 Workaround: Specify fractionDigits explicitly. Transferred Comments: BugDB Migration - Mon Jun 04 12:32:45 CDT 2007 [cpeyer 10/20/06] Entered Bug. JIRA Migration Admin - Mon Jun 04 12:32:45 CDT 2007 Milestone ID = 1378 Milestone = FP 10 - Code Complete Build ID = 22846 Build = AVMPLUS_1_0_0_d686 Fix Build ID = null Fix Build = null JIRA Migration Admin - Mon Jun 04 12:32:45 CDT 2007 Move from BugDB issue number 188971 Trevor Baker - Tue Jan 27 16:03:35 CST 2009 back to internal review for reprioritization This bug transferred from: http://bugs.adobe.com/jira/browse/ASC-2256
Blocks: AS3_Builtins
This bug would require a fix in three places: 1) In Number.as, the default argument of toExponential is 0 instead of undefined (see ECMA-262, 15.7.4.6). 2) NumberClass::_convert() needs to take an Undefined argument into account - the "precision" argument probably needs to be an Atom instead of an integer. 3) MathUtils::convertDoubleToString() currently only removes trailing zeroes for the "normal" mode. It needs to do so for Exponential mode as well if the precision is Undefined. I can take this bug if requested.
Priority: -- → P4
Target Milestone: --- → flash10.1
Flags: in-testsuite?
Flags: flashplayer-triage+
Flags: flashplayer-qrb?
Flags: flashplayer-qrb? → flashplayer-qrb+
Blocks: a2d-d2a
Assignee: nobody → lhansen
Status: NEW → ASSIGNED
TC pushed: redux changeset: 2760:2e75d5d3010b
Depends on: 521772
The patch for bug #521772 fixes this bug too.
Whiteboard: Has patch
Whiteboard: Has patch → Has patch; dependent
Assignee: lhansen → nobody
Priority: P4 → --
Target Milestone: flash10.1 → Future
Depends on: 535770
This is a mass change. Every comment has "assigned-to-new" in it. I didn't look through the bugs, so I'm sorry if I change a bug which shouldn't be changed. But I guess these bugs are just bugs that were once assigned and people forgot to change the Status back when unassigning.
Status: ASSIGNED → NEW
Priority: -- → P2
Target Milestone: Future → flash10.2
Whiteboard: Has patch; dependent → has-patch; dependent
Assignee: nobody → lhansen
Status: NEW → ASSIGNED
Flags: flashplayer-bug+
Whiteboard: has-patch; dependent has-patch; dependent → has-patch; dependent, must–fix-candidate has-patch; dependent, must–fix-candidate
Whiteboard: has-patch; dependent, must–fix-candidate has-patch; dependent, must–fix-candidate → has-patch; dependent, must-fix-candidate has-patch; dependent, must-fix-candidate
Target Milestone: Q3 11 - Serrano → Q1 12 - Brannan
Whiteboard: has-patch; dependent, must-fix-candidate
Assignee: lhansen → nobody
Status: ASSIGNED → NEW
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.