Skip to content

Panic in Repr::into_f64_internal when calling Repr::to_f64Β #56

@martinstuder

Description

@martinstuder

DBig::from_str("88888888888888888").unwrap().to_f64(); currently causes the following panic due to a corresponding debug_assert! statement:

panicked at .../.cargo/registry/src/index.crates.io-6f17d22bba15001f/dashu-float-0.4.3/src/convert.rs:617:9:
assertion failed: self.significand.bit_len() <= 53

Is this a bug in the implementation of Repr::to_f64 or what is the recommended way of handling this situation?

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