I need to convert the following line of PHP into Coldfusion
$age = 10
$test = pow($age,-2)*log($age);
Coldfusion does not have a POW() function. This is what I have come up with
<cfset age = 10>
<cfset test = age^-2*log(age)>
Any help would be much appreciated.
James
The ^
operator does the job
You are doing it right