Change prefixes used by the Float trait
Change `EXPONENT_` to `EXP_` and `SIGNIFICAND_` to `SIG_`. These are pretty unambiguous, and just makes for less to type once these get used.
This commit is contained in:
committed by
Trevor Gross
parent
c357c1bd98
commit
4c1772ed85
@@ -15,7 +15,7 @@ use crate::Float;
|
||||
|
||||
/// Create a multiple-precision float with the correct number of bits for a concrete float type.
|
||||
fn new_mpfloat<F: Float>() -> MpFloat {
|
||||
MpFloat::new(F::SIGNIFICAND_BITS + 1)
|
||||
MpFloat::new(F::SIG_BITS + 1)
|
||||
}
|
||||
|
||||
/// Set subnormal emulation and convert to a concrete float type.
|
||||
|
||||
Reference in New Issue
Block a user