vipzeus
Member
Hi again
I have e calc element and i need the calculation of the value of cascading dropdown (without select option) but for some reason im obtain 0 instead the real value 0.139 when i use the (int)
What is rong with this code? i need the decimals
I have e calc element and i need the calculation of the value of cascading dropdown (without select option) but for some reason im obtain 0 instead the real value 0.139 when i use the (int)
PHP:
//Call the price
$f0 = '{simulatore___f0}'; //this is the cascading element
$cost = (int)$f0 + 0.027 ;
return $cost;
What is rong with this code? i need the decimals
Last edited: