calc element calculation from cascadind element

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)
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:
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top