osc: precision is already limited by widget's parser
This commit is contained in:
parent
edfa2f7d6f
commit
934d967758
1 changed files with 1 additions and 1 deletions
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue