Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am getting output as#!c:/perl/bin/perl $x=100.0; $y=-100.01; print $x+$y;
please help me out why this is coming ? how to ensure to get only -0.01-0.0100000000000051
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: can't Understand output
by moritz (Cardinal) on Apr 15, 2008 at 18:45 UTC | |
|
Re: can't Understand output
by apl (Monsignor) on Apr 15, 2008 at 18:49 UTC | |
|
Re: can't Understand output
by FunkyMonk (Bishop) on Apr 15, 2008 at 18:46 UTC | |
|
Re: can't Understand output
by tachyon-II (Chaplain) on Apr 15, 2008 at 23:52 UTC | |
|
Re: can't Understand output
by casiano (Pilgrim) on Apr 16, 2008 at 07:58 UTC | |
|
Re: can't Understand output
by swampyankee (Parson) on Apr 16, 2008 at 18:44 UTC |