Skip to content

Commit 115b1ce

Browse files
dvd101xfelipec
authored andcommitted
script: improve output format
Otherwise certain objects are not displayed properly: f(x, y) = x + y car = { mass: 10 kg } Signed-off-by: Felipe Contreras <[email protected]>
1 parent f14613b commit 115b1ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function doMath(input) {
1111
output_line = line;
1212
} else {
1313
try {
14-
output_line = math.evaluate(line, scope);
14+
output_line = math.format(math.evaluate(line, scope), 14);
1515
} catch(e) {
1616
output_line = e;
1717
}

0 commit comments

Comments
 (0)