We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80ee562 commit 32ad649Copy full SHA for 32ad649
tests/print_dec.rs
@@ -7,3 +7,15 @@ fn issue_107() {
7
let n = Number::from_parts(true, 1, -32768);
8
assert_eq!(format!("{}", n), "1e-32768");
9
}
10
+
11
+#[test]
12
+fn issue_108_exponent_positive() {
13
+ let n = Number::from_parts(true, 10_000_000_000_000_000_001, -18);
14
+ assert_eq!(format!("{}", n), "1.0000000000000000001e+1");
15
+}
16
17
18
+fn issue_108_exponent_0() {
19
+ let n = Number::from_parts(true, 10_000_000_000_000_000_001, -19);
20
+ assert_eq!(format!("{}", n), "1.0000000000000000001");
21
0 commit comments