[#9722] Kernel#system broken inside Dir.chdir(&block) if system command doesn't have shell characters — <noreply@...>

Bugs item #7278, was opened at 2006-12-14 13:59

8 messages 2006/12/14

[#9749] System V IPC in standard library? — Steven Jenkins <steven.jenkins@...>

Back in August, I needed a semaphore to serialize access to an external

14 messages 2006/12/19

[#9753] CVS freeze — SASADA Koichi <ko1@...>

Hi,

20 messages 2006/12/20
[#9755] Re: [ruby-dev:30039] CVS freeze — SASADA Koichi <ko1@...> 2006/12/20

Hi,

[#9757] Re: [ruby-dev:30040] Re: CVS freeze — SASADA Koichi <ko1@...> 2006/12/20

Hi,

Re: Float numbers comparison

From: gwtmp01@...
Date: 2006-12-07 03:10:55 UTC
List: ruby-core #9673
On Dec 1, 2006, at 10:28 PM, Paulo Soeiro wrote:
> I have a doubt about the floating point comparisons:
>
> a=1.9
> b= 1.8 +0.1
> puts a==b  #false
>
> The result is false.
>
> If i change the values,
>
> a=1.6
> b= 1.5 +0.1
> puts a==b  #true
>
> The result is true

This seems to be a common source of confusion for many programmers in  
just about every programming language.
For a reasonably thorough discussion of this issue see:

What every computer scientist should know about floating-point  
arithmetic.
http://docs-pdf.sun.com/800-7895/800-7895.pdf

Gary Wright




In This Thread