2009/7/18 Octavian Râşniţă <orasn...@gmail.com>:
> From: "Dr.Ruud" <rvtol+use...@isolution.nl>
> Octavian Rasnita wrote:
>>
>>> print 0.79 - 0.798;
>>>
>>> -0.00800000000000001
>>>
>>> which is obviously wrong.
>>
>> And it is obvious to me that you are wrong. Funny hey?
>>
>> --
>> Ruud
>
> Sorry but the calculation is obviously wrong. It is not my fault that the
> computers can't make a perfect float calculation with an infinite number of
> digits.
> But yes, it is not just a fault of perl.
snip

Before you go blaming computers, what is the exact value of Pi again?
Understanding the limitations of reality and computers is your job if
you want accurate results.

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to