Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am setting a variable $finalamount = $v_amount - ($plbamt) with v_amount = -683.12 and $plbamt = -683.12. This should result in $finalamount = 0 but it results in 1.13686837721616e-013 can anyone tell me why this is?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: subtraction issue
by choroba (Cardinal) on Jan 24, 2017 at 21:47 UTC | |
by BillKSmith (Monsignor) on Jan 25, 2017 at 17:14 UTC | |
|
Re: subtraction issue
by syphilis (Archbishop) on Jan 24, 2017 at 22:28 UTC | |
by AnomalousMonk (Archbishop) on Jan 24, 2017 at 22:59 UTC | |
by syphilis (Archbishop) on Jan 27, 2017 at 09:00 UTC | |
by pryrt (Abbot) on Jan 27, 2017 at 16:41 UTC | |
by syphilis (Archbishop) on Jan 28, 2017 at 01:47 UTC | |
| |
|
Re: subtraction issue
by hippo (Archbishop) on Jan 25, 2017 at 09:07 UTC | |
|
Re: subtraction issue
by LanX (Saint) on Jan 25, 2017 at 17:46 UTC |