PHP Calculation - Simple But Annoying!?

Chris Y

New member
Righty Then...I have 3 Values; (Which are...&Currently equal to:)

$Available_Balance = 3539.16;
$Amount = 50.50;

$users_New_Balance = 3488.663488.66;

Naturally I'm sure you can see what I'm trying to do here.

Simply take the amount off the available balance.....But I'm getting this long string afterso....I've tryed all sorts...Here are examples of what I've tryed but don't seem to work;

round($users_New_Balance, 2)

number_format($users_New_Balance, 2);

Any other ideas?
I'm a f**king tool!!!!


Just noticed, it's echoing the number twice!!! HAHA Outstanding Banter
 
Back
Top