Rust library
MANTISSA_DIGITS
This is Rust standard-library source from the compiler version used in the run.
409 /// Note that the size of the mantissa in the bitwise representation is one410 /// smaller than this since the leading 1 is not stored explicitly.411 #[stable(feature = "assoc_int_consts", since = "1.43.0")]412 pub const MANTISSA_DIGITS: u32 = 53;413 /// Approximate number of significant digits in base 10.414 ///415 /// This is the maximum <i>x</i> such that any decimal number with <i>x</i>Aeneas declaration
Aeneas generated this declaration for a Rust library operation. Any authored model recorded for this operation is shown below.
@[rust_const "core::f64::{f64}::MANTISSA_DIGITS"]
axiom core.f64.F64.MANTISSA_DIGITS : Result Std.U32Authored Lean model
Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.
import Tablet.Binary64ModelDefault
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelF64MantissaDigits]
def ModelF64MantissaDigits : Result Std.U32 :=
-- BODY
Binary64ModelDefault.mantissaDigits
end dec2flt_model
Source details
| Declaration | core.f64.F64.MANTISSA_DIGITS |
|---|---|
| File | /rustc/library/core/src/num/f64.rs |
| Lines | 412:4–412:34 |
| Program version | Original program |