✅ Trying to calculate percentage value to 2dp
Im trying to get a total out of 35 and then find the percentage value to 2dp but it gives 0 for some reason, help!
6 Replies
Cast that
total
to a floatAngius
REPL Result: Success
Result: int
Compile: 299.662ms | Execution: 22.957ms | React with ❌ to remove this embed.
This times 100 is still 0
oooo?
ok ill try that
Or try
total / 35f * 100f
AH
ok it worked thank you!
i get