I just wanted to calculate the VAT, but when i divide by 100 to obtain the total price (price*VAT/100), but it returns me 0.0. Here\'s my code:
a.pri
You need to cast the expression to float. I used a float literal here 100.0f.
float
100.0f
a.total= a.precio*a.iva/100.0f;