Hi everyone,
I am having a bit of a problem working with session variables and doubles.
I am handing a floatingpoint value to a script via a form (using $_GET).
Then the script does a calculation:
$_SESSION['total'] = $_SESSION['total'] + $_GET['prize'];
$SESSION['total'] already contains a value and $GET['prize'] has to be added to that value.
While the outcome should be 12.50 after calculation, session var 'total' only shows 12.
I've tried working with settype but that didn't help.
I must be overlooking something. 🙁