Quartz Composer JavaScript Reference © Cybero Designs  

round

Type method
Format Math.round (value)
Commentary
The rounded value of the stated input.
Sample code - QC 2 JavaScript
outputs [0] = Math.round (inputs [0]);
Sample code - QC 3 JavaScript
function (__number outputNumber) main (__number inputNumber[2])
{
var result = new Object();
result.outputNumber = Math.round(inputNumber[0]);
return result;
}

Download QC2 example scriptDownload QC3 example script
Return to the Start Page