Skip to content

Commit 0558426

Browse files
committed
Merge branch 'development' of github.com:kgrgreer/foam3 into development
2 parents a50720a + 855d465 commit 0558426

17 files changed

+2435
-333
lines changed

doc/tutorials/foam-tutorial.md

Lines changed: 1831 additions & 0 deletions
Large diffs are not rendered by default.

doc/tutorials/html/dao_sink_flow.html

Lines changed: 357 additions & 0 deletions
Large diffs are not rendered by default.
117 KB
Loading

doc/tutorials/images/screen1.png

102 KB
Loading

doc/tutorials/images/screen2.png

136 KB
Loading

doc/tutorials/images/screen3.png

115 KB
Loading

src/foam/mlang/Constant.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,12 @@ foam.CLASS({
7676
return '\"' + this.value + '\"';
7777

7878
if ( typeof this.value === 'number' && ! Number.isInteger(this.value) && isFinite(this.value) ) {
79-
var s = this.value.toFixed(20);
80-
s = s.replace(/0+$/, '');
81-
if ( s.endsWith('.') ) s += '0';
79+
var s = String(this.value);
80+
if ( s.indexOf('e') !== -1 || s.indexOf('E') !== -1 ) {
81+
s = this.value.toFixed(20);
82+
s = s.replace(/0+$/, '');
83+
if ( s.endsWith('.') ) s += '0';
84+
}
8285
return s;
8386
}
8487

0 commit comments

Comments
 (0)