[#11073] segfault printing instruction sequence for iterator — <noreply@...>

Bugs item #10527, was opened at 2007-05-02 14:42

14 messages 2007/05/02
[#11142] Re: [ ruby-Bugs-10527 ] segfault printing instruction sequence for iterator — Nobuyoshi Nakada <nobu@...> 2007/05/10

Hi,

[#11188] Re: [ ruby-Bugs-10527 ] segfault printing instruction sequence for iterator — Paul Brannan <pbrannan@...> 2007/05/16

On Thu, May 10, 2007 at 04:51:18PM +0900, Nobuyoshi Nakada wrote:

[#11234] Planning to release 1.8.6 errata — Urabe Shyouhei <shyouhei@...>

Hi all.

17 messages 2007/05/25

Re: [ ruby-Bugs-10713 ] Weird rounding behavior..

From: Yukihiro Matsumoto <matz@...>
Date: 2007-05-09 11:39:01 UTC
List: ruby-core #11122
Hi,

In message "Re: [ ruby-Bugs-10713 ] Weird rounding behavior.."
    on Wed, 9 May 2007 18:12:24 +0900, <noreply@rubyforge.org> writes:

|Initial Comment:
|irb(main):002:0> n=4
|=> 4
|irb(main):003:0> a=(52.07825 * (10.0 ** n))
|=> 520782.5
|irb(main):004:0> a.round
|=> 520782
|
|Which is WRONG it should be 520783.

Try printf "%.10f\n", a; you will get 520782.4999999999, which a.round
should be 520782.

							matz.

In This Thread