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.
to_string_with_radix
1 parent 88ea1f3 commit e59013aCopy full SHA for e59013a
1 file changed
packages/pretty-format/src/lib.rs
@@ -15,7 +15,7 @@ fn print_number(val: &Number) -> String {
15
if Object::is(val, &JsValue::from_f64(-0.0)) {
16
"-0".to_owned()
17
} else {
18
- val.to_string(10)
+ val.to_string_with_radix(10)
19
.expect("Number should be formatted as string.")
20
.into()
21
}
@@ -25,7 +25,7 @@ fn print_big_int(val: &BigInt) -> String {
25
format!(
26
"{}n",
27
String::from(
28
29
30
)
31
0 commit comments