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)
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
Updated•16 years ago
|
Blocks: AS3_Builtins
Comment 1•16 years ago
|
||
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.
Updated•15 years ago
|
Priority: -- → P4
Target Milestone: --- → flash10.1
Updated•15 years ago
|
Flags: in-testsuite?
Flags: flashplayer-triage+
Flags: flashplayer-qrb?
Updated•15 years ago
|
Assignee: nobody → lhansen
Status: NEW → ASSIGNED
Comment 2•15 years ago
|
||
TC pushed: redux changeset: 2760:2e75d5d3010b
Updated•15 years ago
|
Whiteboard: Has patch → Has patch; dependent
Updated•15 years ago
|
Assignee: lhansen → nobody
Priority: P4 → --
Target Milestone: flash10.1 → Future
Comment 4•15 years ago
|
||
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
Updated•15 years ago
|
Priority: -- → P2
Target Milestone: Future → flash10.2
Updated•15 years ago
|
Whiteboard: Has patch; dependent → has-patch; dependent
Updated•15 years ago
|
Assignee: nobody → lhansen
Status: NEW → ASSIGNED
Updated•14 years ago
|
Flags: flashplayer-bug+
Whiteboard: has-patch; dependent has-patch; dependent → has-patch; dependent, must–fix-candidate has-patch; dependent, must–fix-candidate
Updated•14 years ago
|
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
Updated•14 years ago
|
Whiteboard: has-patch; dependent, must-fix-candidate
Updated•13 years ago
|
Assignee: lhansen → nobody
Status: ASSIGNED → NEW
Updated•6 years ago
|
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.
Description
•