We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fddc849 commit 6dbb025Copy full SHA for 6dbb025
src/libcore/float.rs
@@ -466,9 +466,9 @@ pub fn test_from_str() {
466
assert from_str(~".e-1") == Some(0.);
467
assert from_str(~"5.") == Some(5.);
468
assert from_str(~".5") == Some(0.5);
469
- assert from_str(~"0.6") == Some(0.5);
470
471
+ assert from_str(~"0.5") == Some(0.5);
472
assert from_str(~"-.5") == Some(-0.5);
473
474
assert from_str(~"-5") == Some(-5.);
0 commit comments