multiplying two decimal point numbers

Post Reply
gaurav.shetti
Posts: 119
Joined: Fri Feb 27, 2009 9:09 am

multiplying two decimal point numbers

Post by gaurav.shetti »

how do I multiply two decimal point numbers Ie:

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

above method returns 0.
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

multiplying two decimal point numbers

Post by mark »

<$x=(convert( '500.0' , 'double' ))>
<$y=(convert( '0.5' , 'double' ))>
<$z=($x * $y)>
Post Reply