So you're getting something like 12.3% and want just the number?
int(P) will do *something* close to what you want. It'll either spit out 12 as an integer casting should, but I have a feeling it will give you 123. As in it just throws out all the non-digit characters. You can just divide that by 10 afterwards.
You're probably going to have fun splitting that formula apart as well. You can only do one simple calculation per line.
|