print floating point zero as 0.0 (#859)
This commit is contained in:
@@ -963,8 +963,8 @@ impl<'a, Outputter: HCValueOutputter> HCPrinter<'a, Outputter> {
|
|||||||
match n {
|
match n {
|
||||||
Number::Float(fl) => {
|
Number::Float(fl) => {
|
||||||
if &fl == &OrderedFloat(0f64) {
|
if &fl == &OrderedFloat(0f64) {
|
||||||
push_space_if_amb!(self, "0", {
|
push_space_if_amb!(self, "0.0", {
|
||||||
self.append_str("0");
|
self.append_str("0.0");
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
let OrderedFloat(fl) = fl;
|
let OrderedFloat(fl) = fl;
|
||||||
|
|||||||
Reference in New Issue
Block a user