rich d #1 Yeah, thanks for all the help, but I found out about RPN (reverse polish notation) and its a lot fast and fewer lines of code. But thanks anyway, ill probably keep some of this in mind.