From 934d96775826733660ffe462b2eb5b4a936404ff Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Fri, 4 Nov 2016 00:04:15 +0100 Subject: [PATCH] osc: precision is already limited by widget's parser --- app/main/osc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main/osc.js b/app/main/osc.js index 70c96a46..047be4a3 100644 --- a/app/main/osc.js +++ b/app/main/osc.js @@ -32,7 +32,7 @@ var parseArg = function(arg,precision){ if (arg==null) return null switch (typeof arg) { case 'number': - return {type: precision == 0 ? 'i' : 'f', value: parseFloat(arg.toFixed(Math.min(precision,20)))} + return {type: precision == 0 ? 'i' : 'f', value: parseFloat(arg.toFixed(precision))} case 'boolean': return {type: arg ? 'T' : 'F', value: arg} case 'object':