Fix the fallout
This commit is contained in:
parent
09f53fd45c
commit
b1cd76906a
9 changed files with 38 additions and 38 deletions
|
|
@ -19,18 +19,18 @@ macro_rules! t {
|
|||
|
||||
pub fn main() {
|
||||
// Basic usage
|
||||
t!(to_string(1.2345678e-5f64, 10u, true, SignNeg, DigMax(6), ExpDec, false),
|
||||
t!(to_string(1.2345678e-5f64, 10, true, SignNeg, DigMax(6), ExpDec, false),
|
||||
"1.234568e-5");
|
||||
|
||||
// Hexadecimal output
|
||||
t!(to_string(7.281738281250e+01f64, 16u, true, SignAll, DigMax(6), ExpBin, false),
|
||||
t!(to_string(7.281738281250e+01f64, 16, true, SignAll, DigMax(6), ExpBin, false),
|
||||
"+1.2345p+6");
|
||||
t!(to_string(-1.777768135071e-02f64, 16u, true, SignAll, DigMax(6), ExpBin, false),
|
||||
t!(to_string(-1.777768135071e-02f64, 16, true, SignAll, DigMax(6), ExpBin, false),
|
||||
"-1.2345p-6");
|
||||
|
||||
// Some denormals
|
||||
t!(to_string(4.9406564584124654e-324f64, 10u, true, SignNeg, DigMax(6), ExpBin, false),
|
||||
t!(to_string(4.9406564584124654e-324f64, 10, true, SignNeg, DigMax(6), ExpBin, false),
|
||||
"1p-1074");
|
||||
t!(to_string(2.2250738585072009e-308f64, 10u, true, SignNeg, DigMax(6), ExpBin, false),
|
||||
t!(to_string(2.2250738585072009e-308f64, 10, true, SignNeg, DigMax(6), ExpBin, false),
|
||||
"1p-1022");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue