aboutsummaryrefslogtreecommitdiffstats
path: root/src/transpile_js.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/transpile_js.rs')
-rw-r--r--src/transpile_js.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transpile_js.rs b/src/transpile_js.rs
index 586abc1..282240b 100644
--- a/src/transpile_js.rs
+++ b/src/transpile_js.rs
@@ -105,7 +105,7 @@ impl TranspileJS for Expr {
use modelica_parser::Expr::*;
match *self {
Integer(e) => Ok(format!("{}", e)),
- Float(e) => Ok(format!("{}", e)),
+ Float(e) => Ok(format!("{:e}", e)),
Boolean(true) => Ok(format!("true")),
Boolean(false) => Ok(format!("false")),
StringLiteral(ref s) => Ok(format!("\"{}\"", s)),