Quote:
Originally Posted by kurt
I was hoping there's something like:
Gone = energy * 50%
|
Nope, unless you create a function to do it:
def pc(x): return x / 100.0
gone = energy * pc(50)
Or
pc = 0.01
gone = energy * 50*pc
The problem is that % is already the modulus operator, so it can't also be used for percentages.