Skip to content

Some std::f32 constants are actually f64s #11537

Closed
@zhanrnl

Description

@zhanrnl

std::f32::MAX_VALUE, std::f32::MIN_VALUE, and std::f32::EPSILON are all actually f64s, not f32s as expected. FLT_MAX and FLT_MIN in C are all floats, not doubles, for example. If this is intentional, it's very confusing to me why any constants in the std::f32 module should be f64s, and probably should be explained in the documentation.

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