Skip to content

[feature request] adapt to print with given digit #6

Description

let m = 10000.0 / 3.0;
// print 3333.33
println!("{:.2}", m);
// print 3,333.3333333333335
println!("{:}", m.separated_string());
// expectedd print 3,333.33
// actual print 3,
println!("{:.2}", m.separated_string());

rustc version: 1.52.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions