Skip to content

Incorrect &str => f64 results #18659

Closed
Closed
@alexcrichton

Description

@alexcrichton

Perhaps an off-by-one-somewhere?

fn main() {                                 
    let f: f64 = from_str("-3.14").unwrap();
    println!("{}", f);                      
}                                           
$ rustc foo.rs && ./foo
-13.14

cc @bjz, probably related to #18536

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions