Closed
Bug 615113
Opened 14 years ago
Closed 6 years ago
parseFloat of s Infinite but of s+"5" is not
Categories
(Tamarin Graveyard :: Virtual Machine, defect)
Tamarin Graveyard
Virtual Machine
Tracking
(Not tracked)
RESOLVED
WONTFIX
Future
People
(Reporter: pnkfelix, Unassigned)
References
Details
var s =
"45555555555555555555393483993848343292934923482342349234823042312341802"+
"34812340182340198234012834012348109234812834712394871234971234918023471"+
"09237841092348701923478109234871092347812093478130947812903487123904871"+
"23094871209371290143287123490873934839938483432929349234823423492348230"+
"42312341802348123401823401982340128340123481092348128347123948712349712"+
"34918023471092378410923487019234781092348710923478120934781309478129034"+
"87123904871230948712093712901432871234908739348399384834329293492348234"+
"23492348230423123418023481234018234019823401283401234810923481283471239"+
"48712349712349180234710923784109234870192347810923487109234781209347813"+
"09478129034871239048712309487120937129014328712349087393483993848343292"+
"93492348234234923482304231234180234812340182340198234012834012348109234"+
"81283471239487123497123491802347109237841092348701923478109234871092347"+
"81209347813094781290348712390487123094871209371290143287123490873934839"+
"93848343292934923482342349234823042312341802348123401823401982340128340"+
"12348109234812834712394871234971234918023471092378410923487019234781092"+
"34871092347812093478130947812903487123904871230948712093712901432871234"+
"90873934839938483432929349234823423492348230423123418023481234018234019"+
"823401283401234810923481283471239487123497123";
trace(parseFloat(s));
trace(parseFloat(s+"5"));
yields
Infinity
16414871242199091000
which does not make sense; e.g. the equivalent code in Javascript yields Infinity from both.
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
•