Paul Johnson wrote:
On Fri, Jul 17, 2009 at 12:26:58PM +0200, Thomas Bätzler wrote:
Octavian Rasnita <orasn...@gmail.com> asked:
I have tried the following calculation with ActivePerl 5.10.0 build 1004
under Windows XP Pro:
print 0.79 - 0.798;
And it gave the following result:
-0.00800000000000001
which is obviously wrong.
No, it isn't.
Well ... yes, it is.
But the rest of your answer is spot on.
FYI, there is a field of mathematics, numerical analysis
http://en.wikipedia.org/wiki/Numerical_analysis that studies problems
like this.
--
Just my 0.00000002 million dollars worth,
Shawn
Programming is as much about organization and communication
as it is about coding.
Regardless of how small the crowd is, there is always one in
it who has to find out the hard way that the laws of physics
applies to them too.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/