This question has already been answered:
- 25/100 = 0, Why? 3 replies
- Does not count and display 0 [duplicate] 2 responses
100 / 3 = 33.0 , but I need accuracy to at least a tenth, and better hundredths
This question has already been answered:
100 / 3 = 33.0 , but I need accuracy to at least a tenth, and better hundredths
A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .
Source: https://ru.stackoverflow.com/questions/666160/
All Articles
double passed_perc = (passed * 100.) / all;... does not help - obviously bring the operands todouble. - Akina