in reply to Getting stranger values in subtraction
Thank you so much :)
I modified the relevant line of code as follows based on the pointers above, and it seems to have solved the anomaly:
#$session->param('CART')->{total_amount} -= $amount; $session->param('CART')->{total_amount} = sprintf "%.2f", $ses +sion->param('CART')->{total_amount} - $amount;
Do we get the same problem with addition?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getting stranger values in subtraction
by Anonymous Monk on Feb 06, 2016 at 09:20 UTC | |
|
Re^2: Getting stranger values in subtraction
by Anonymous Monk on Feb 06, 2016 at 09:06 UTC | |
by poj (Abbot) on Feb 06, 2016 at 09:11 UTC | |
by choroba (Cardinal) on Feb 06, 2016 at 09:10 UTC | |
by Anonymous Monk on Feb 06, 2016 at 09:26 UTC |