Closed Bug 521196 (a2d-d2a) Opened 15 years ago Closed 6 years ago

String->number and number->string issues

Categories

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

defect

Tracking

(Not tracked)

RESOLVED WONTFIX
Q1 12 - Brannan

People

(Reporter: lhansen, Unassigned)

References

Details

(Whiteboard: Tracking)

Attachments

(2 files)

Tracking bugs for all bugs in string->number and number->string routines.
Whiteboard: Tracking
Alias: a2d-d2a
Depends on: 442273
Depends on: 513018
Depends on: 513019
Depends on: 478796
Depends on: 478804
Depends on: 442293
Depends on: 442974
Depends on: 510380
Depends on: 513039
Flags: flashplayer-triage+
Depends on: 510281
There is no evidence that the regular Number.toString() method is broken.  I'm attaching two test cases, one in Scheme and one in ActionScript, that print floating-point numbers of known representation.  The Scheme code was run on an implementation that is assumed to be correct, because its implementors care[1].  The ActionScript output is identical, except for the case 1.0 where the rules for AS are different anyway.

So it seems that we have problems with the formatting functions toFixed, toPrecision, and toExponential, because these have certain strange rules that our number printer can't handle yet.  And it seems like we have problems with number parsing because we're using a naive algorithm.
Attached file dtoa test in Scheme
Attached file dtoa test in AS3
Target Milestone: flash10.1 → flash10.2
Priority: P4 → P2
Assignee: nobody → lhansen
Status: NEW → ASSIGNED
Depends on: 531091
Flags: flashplayer-bug+
Whiteboard: Tracking → Tracking, must–fix-candidate
Whiteboard: Tracking, must–fix-candidate → Tracking, must-fix-candidate
Flags: flashplayer-qrb+
Flags: flashplayer-injection-
Target Milestone: Q3 11 - Serrano → Q1 12 - Brannan
Depends on: 602912
Whiteboard: Tracking, must-fix-candidate → Tracking
Depends on: 668470
Depends on: 668499
Assignee: lhansen → nobody
Status: ASSIGNED → NEW
Tamarin is a dead project now. Mass WONTFIX.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Tamarin isn't maintained anymore. WONTFIX remaining bugs.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: