FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Changed precision of cli to 5 digits · JavaScriptIOT/mathjs@cef51e2 · GitHub

Commit cef51e2

Browse files
committed
Changed precision of cli to 5 digits
1 parent 7393cb0 commit cef51e2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎bin/cli.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ function runStream (input, output) {
166166
var res = parser.eval(expr);
167167
if (!Array.isArray(res) || res.length) {
168168
// TODO: how to distinguish array output from multi-line output?
169-
console.log(math.format(res));
169+
console.log(math.format(res, {
170+
precision: 5
171+
}));
170172
}
171173
}
172174
catch (err) {

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL