— It outputs an integer value
— Ive put iomanip and changed the double to float but still the decimal of the percentage wont appear
— Click on the button to see the chat rules!
You should write (float) before an expression.Correctly it would look likefloat percent = (float)(votes[i]*100)/sum;
float percent = (float)(votes[i]*100)/sum;
— (Double) works fast similar.
— Another one bites the dust...!Banned Harmlexx.
— Thanks For accepting me. 😊
— Https://github.com/vurtun/nuklearCan anyone help with troubleshooting this? I copied and pasted the example into my project, and I'm getting 7 errors (two are about undefined variables, and the other five are 'defined but not used').
Message permanent page
— Wow thanks!!