fix float formatting (#1331)

This commit is contained in:
Mark Thom
2022-03-07 19:44:31 -07:00
parent 7a9c3d351d
commit 664c0ee77c
2 changed files with 21 additions and 17 deletions

View File

@@ -1818,7 +1818,7 @@ impl Machine {
let string = match Number::try_from(n) {
Ok(Number::Float(OrderedFloat(n))) => {
format!("{0:<20?}", n)
fmt_float(n)
}
Ok(Number::Fixnum(n)) => n.get_num().to_string(),
Ok(Number::Integer(n)) => n.to_string(),