Source context

Program Rust

MAX_DIGITS

This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.

60     ///61     /// In Python:62     ///     `-emin + p2 + math.floor((emin+ 1)*math.log(2, b)-math.log(1-2**(-p2), b))`63     pub const MAX_DIGITS: usize = 768;64 65     /// The max decimal digits that can be exactly represented in a 64-bit integer.66     pub(super) const MAX_DIGITS_WITHOUT_OVERFLOW: usize = 19;

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

@[global_simps, irreducible]
def num.imp.dec2flt.decimal_seq.DecimalSeq.MAX_DIGITS : Std.Usize := 768#usize
Source details
Declarationnum.imp.dec2flt.decimal_seq.DecimalSeq.MAX_DIGITS
Filenum/imp/../../dec2flt/decimal_seq.rs
Lines63:4–63:38
Program versionOriginal program