aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/library.js')
-rw-r--r--src/library.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js
index 54834d17..7653d446 100644
--- a/src/library.js
+++ b/src/library.js
@@ -134,6 +134,7 @@ var Library = {
}
if (precision >= 0) {
if (isFloatArg(next)) {
+ argText = (Math.round(currArg*Math.pow(10,precision))/Math.pow(10,precision)).toString();
var dotIndex = argText.indexOf('.');
if (dotIndex == -1 && next == 'f'.charCodeAt(0)) {
dotIndex = argText.length;