pub type D38s37 = D38<37>;Expand description
Scale alias: D38<37>. 1 LSB = 10^-37. Range ~+/-17.
This is the maximum supported scale: MAX_SCALE = 37 guarantees at
least one integer digit (|x| >= 1) for every representable value.
10^38 < i128::MAX < 10^39, so the storage could in principle hold a
scale-38 representation, but doing so would leave |x| < 1.7 with no
integer-digit headroom – the scale cap rules this out by design.
Math constants lose precision above SCALE = 35; see D38s36.
§Precision
N/A: constant value, no arithmetic performed.
Aliased Type§
#[repr(transparent)]pub struct D38s37(pub Int<2>);Tuple Fields§
§0: Int<2>