aboutsummaryrefslogtreecommitdiffstats
path: root/modelica-parser-lalrpop/src/ast.rs
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2017-01-28 21:36:49 -0800
committerbnewbold <bnewbold@robocracy.org>2017-01-28 21:36:49 -0800
commit97b0fc2295adcdb1ba54e003227f486a92425acd (patch)
tree5ff8f4c3a76681955cf33a456bc149b1d3ac1d00 /modelica-parser-lalrpop/src/ast.rs
parent1aec9b6479beecd327456780ae7c711040011933 (diff)
downloadmodelthing-97b0fc2295adcdb1ba54e003227f486a92425acd.tar.gz
modelthing-97b0fc2295adcdb1ba54e003227f486a92425acd.zip
switch to sci notation for floats (except latex)
Diffstat (limited to 'modelica-parser-lalrpop/src/ast.rs')
-rw-r--r--modelica-parser-lalrpop/src/ast.rs2
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),