aboutsummaryrefslogtreecommitdiffstats
path: root/src/transpile_python.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/transpile_python.rs')
-rw-r--r--src/transpile_python.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transpile_python.rs b/src/transpile_python.rs
index d980e60..f38f699 100644
--- a/src/transpile_python.rs
+++ b/src/transpile_python.rs
@@ -122,7 +122,7 @@ impl TranspilePython for Expr {
use modelica_parser::BinOperator::*;
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)),