From 97b0fc2295adcdb1ba54e003227f486a92425acd Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sat, 28 Jan 2017 21:36:49 -0800 Subject: switch to sci notation for floats (except latex) --- modelica-parser-lalrpop/src/ast.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modelica-parser-lalrpop') diff --git a/modelica-parser-lalrpop/src/ast.rs b/modelica-parser-lalrpop/src/ast.rs index 12b1503..7873ca9 100644 --- a/modelica-parser-lalrpop/src/ast.rs +++ b/modelica-parser-lalrpop/src/ast.rs @@ -296,7 +296,7 @@ impl Debug for Expr { use self::Expr::*; match *self { Integer(e) => write!(fmt, "{}", e), - Float(e) => write!(fmt, "{}", e), + Float(e) => write!(fmt, "{:e}", e), Boolean(e) => write!(fmt, "{}", e), StringLiteral(ref e) => write!(fmt, "\"{}\"", e), Ident(ref e) => write!(fmt, "{}", e), -- cgit v1.2.3