I get Reference error: POW not defined
when I run this:
I looked pow up in the knowledgebase:
pow(base, exponent) returns base to the power of exponent
So what am I doing wrong/not doing right?
Thanks in Advance.
P.S. these decimals are driving me crazy!
when I run this:
PHP Code:
// rnd function - round to two places
function rnd(value) { // Round the price to iDecimals digits
value = value * pow(10, iDecimals);
return Math.round(value, iDecimals) / pow(10, iDecimals);
}
pow(base, exponent) returns base to the power of exponent
So what am I doing wrong/not doing right?
Thanks in Advance.
P.S. these decimals are driving me crazy!
Comment