cl-ast: always pretty-print decimal for floats

This commit is contained in:
John 2024-09-19 14:00:22 -05:00
parent 5deb585054
commit 94be5d787f

View File

@ -50,7 +50,7 @@ mod display {
Literal::Bool(v) => v.fmt(f),
Literal::Char(v) => write!(f, "'{}'", v.escape_debug()),
Literal::Int(v) => v.fmt(f),
Literal::Float(v) => f64::from_bits(*v).fmt(f),
Literal::Float(v) => write!(f, "{:?}", f64::from_bits(*v)),
Literal::String(v) => write!(f, "\"{}\"", v.escape_debug()),
}
}