Closed
Description
This issue was originally filed by ms...@unipro.ru
What steps will reproduce the problem?
Run the following test:
main() {
var d = Math.parseDouble('0xa');
print(d);
}
What is the expected output? What do you see instead?
Since doubles don't have a hex representation, BadNumberFormatException is expected.
Actual: test runs without errors. DartVM output: 10.0. Frog output: 0.
What version of the product are you using? On what operating system?
DartVM, Frog r4779. OS Ubuntu 10.04.
Please provide any additional information below.
Test in co19: LibTest/core/Math/parseDouble_A02_t01.dart
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
floitschG commentedon Mar 5, 2012
I think this is my fault. I just copy/pasted most of the parseInt tests into parseDouble but forgot to remove the hexadecimal tests.
Imho we should disallow hexadecimal parseDouble.
On the other hand we should add a parseNum function. Opening another issue for that.
Added Area-Library, Triaged labels.
DartBot commentedon Mar 7, 2012
This comment was originally written by @mhausner
Still unresolved.
co19 test LibTest/core/Math/parseDouble_A02_t01.dart
lrhn commentedon Aug 19, 2013
Added Fixed label.
[deps] rev args, bazel_worker, benchmark_harness, dartdoc, glob, http…