
4.9 Scripting 75
Boolean objects
Functions
toString()
valueOf()
Example:
//Test if an equation is true or false
var isTrue = (1 + 1 == 3);
//Convert the Boolean to a String and trace in the Log window
logWindow.printInfo(isTrue.toString());
Number Objects
Functions
toString(radix)
toLocaleString()
toFixed(fractionDigits)
toExponential(fractionDigits)
toPrecision(precision)
Example:
//Convert a number into exponential notation
var num = new Number(13.3714);
//Show the result in the Log window
logWindow.printInfo(num.toExponential());
Math Objects
Values
E
LN10
LN2
LOG2E
LOG10E
PI
SQRT1 2
SQRT2
WaveLab 7
Comentarios a estos manuales