simple calculation

mike wild

Registered User.
Local time
Today, 07:58
Joined
Feb 16, 2003
Messages
69
I am trying to do this:

bet2 = 100
odd = 4

[textbox] = [bet2] * odd + [bet2] /2

the answer should be 250. But i am getting 450.

I Understand what is happening but unable to reslolve the calculation.
the final [bet2] is being devided by 2 and applied to the first part of the calculation.
 
[textbox] = ([bet2] * odd + [bet2]) /2
 
i feel silly now. yes brackets. Cheers
 

Users who are viewing this thread

Back
Top Bottom