osc: precision is already limited by widget's parser

This commit is contained in:
jean-emmanuel 2016-11-04 00:04:15 +01:00
parent edfa2f7d6f
commit 934d967758

View file

@ -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':