Quartz Composer JavaScript Reference © Cybero Designs  

toPrecision

Type Method
Format Numeric . toPrecision (digits)
Commentary
The specified number of digits in value. Returns a string representing the number to a specified precision in fixed-point or exponential notation. Value range for notation is 1 to 100.(Unconfirmed)
Sample code - QC 2 JavaScript
n = inputs [0]. toPrecision (4);
outputs [0] = n;
Sample code - QC 3 JavaScript
function (__string outputNumber) main (__number inputNumber[2])
{
var result = new Object();
n = inputNumber[0].toPrecision(4);
result.outputNumber = n;
return result;
}

Return to the Start Page