Skip to content

f32/f64 MIN_EXP is either wrong or badly documented. #43583

Closed
@eddyb

Description

@eddyb

They are both -MAX_EXP + 3 while core::num::dec2flt::RawFloat uses -MAX_EXP + 1.
Also, APFloat (being ported to Rust in #43554) uses the same -MAX_EXP + 1 value.
That is the value of the exponent for the smallest normal, AFAIK.

cc @rust-lang/libs @est31 @nagisa @lifthrasiir @rkruppe

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