diff options
author | bnewbold <bnewbold@robocracy.org> | 2017-01-28 21:36:49 -0800 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2017-01-28 21:36:49 -0800 |
commit | 97b0fc2295adcdb1ba54e003227f486a92425acd (patch) | |
tree | 5ff8f4c3a76681955cf33a456bc149b1d3ac1d00 /modelica-parser-lalrpop/src | |
parent | 1aec9b6479beecd327456780ae7c711040011933 (diff) | |
download | modelthing-97b0fc2295adcdb1ba54e003227f486a92425acd.tar.gz modelthing-97b0fc2295adcdb1ba54e003227f486a92425acd.zip |
switch to sci notation for floats (except latex)
Diffstat (limited to 'modelica-parser-lalrpop/src')
-rw-r--r-- | modelica-parser-lalrpop/src/ast.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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), |