Skip to content

Commit

Permalink
fix: reduce number of decimal places in expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
urish committed Mar 30, 2024
1 parent e808113 commit 97fa104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tcl/init.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Author: Uri Shaked

proc ev {args} {
return [expr [join $args]]
return [format %.4g [expr [join $args]]]
}

0 comments on commit 97fa104

Please sign in to comment.