I am working on a Statistics page and I need a nice clean looking percentage value.
I am able to get an exact percentage using the divide operator, but in the case of 30% of 100, I am looking for a non-decimal value of "33" not ".33333333333333...".
Lookup int(), round(), and ceil() in the manual.
That worked perfectly. Thank you.
It ended up looking something like this:
Resulting in: 33
Multiplying *100 was needed to move the decimal over 2 places.
Develop games in your browser. Powerful, performant & highly capable.
Yep percentages are either multiplied,or divided, and 0.01 or 100.