View Single Post
  #5  
Unread 03-12-2010, 07:28 PM
EQAditu's Avatar
EQAditu EQAditu is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Permafrost
Posts: 256
Default

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.
Reply With Quote