Skip to content

Mention scientific E-notation? #1649

@adrian5

Description

@adrian5

Rust supports scientific e-notation for numeric literals. I wonder if they'd make a good addition to the literals section.

println!("{}, {}", 2e-4, 2e4); // 0.0002, 20000

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