I do a percentage calculation, but it displays integers. I tried converting from int to float, but it still displays as integer. How to fix it to display decimal numbers.
The calculation I'm using is 100.0 * (1.0 + (floatA / (floatA + floatB)))
this is where floatA = 1, floatB = 1, so I should see a value of 50.0%, instead I see a value of 100.
I am trying to get things to use decimals. Any help would be appreciated.
source share