Help - Search - Members - Calendar
Full Version: Withdraw From A Bank
Achaea's Forums > Off-Topic > Tech Support > Curing Systems and Scripts
Jonathin
CODE
#ALIAS wdraw {WITHDRAW %eval( %round( %1/(%float( .995))))}


I can't test to see if it works perfectly, but the logic is there. Also, I'm not sure if that's the best way to do it, but the math

x\.995=y
x being the amount desired
y being the amount actually withdrawn to give you the amount desired.


Please lemme know if I did some bad math.
Sena
You need to use 0.995 instead of just .995, in order for it to be read as a number.

Actually, never mind. It seems %float will convert it to a number just fine. Normally though, you'd need to use 0.995.

Then again, using 0.995 would mean that %float wouldn't be necessary.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.