Page 1 of 1

multiplying two decimal point numbers

Posted: Tue Jun 23, 2009 10:03 am
by gaurav.shetti
how do I multiply two decimal point numbers Ie:

<$x=500>
<$y=0.5>
<$z=($x * $y)>

above method returns 0.

multiplying two decimal point numbers

Posted: Tue Jun 23, 2009 10:15 am
by mark
<$x=(convert( '500.0' , 'double' ))>
<$y=(convert( '0.5' , 'double' ))>
<$z=($x * $y)>