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 /src/transpile_python.rs | |
| parent | 1aec9b6479beecd327456780ae7c711040011933 (diff) | |
| download | modelthing-97b0fc2295adcdb1ba54e003227f486a92425acd.tar.gz modelthing-97b0fc2295adcdb1ba54e003227f486a92425acd.zip  | |
switch to sci notation for floats (except latex)
Diffstat (limited to 'src/transpile_python.rs')
| -rw-r--r-- | src/transpile_python.rs | 2 | 
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)),  | 
