[#61822] Plan Developers Meeting Japan April 2014 — Zachary Scott <e@...>

I would like to request developers meeting around April 17 or 18 in this mo=

14 messages 2014/04/03
[#61825] Re: Plan Developers Meeting Japan April 2014 — Urabe Shyouhei <shyouhei@...> 2014/04/03

It's good if we have a meeting then.

[#61826] Re: Plan Developers Meeting Japan April 2014 — Zachary Scott <e@...> 2014/04/03

Regarding openssl issues, I=E2=80=99ve discussed possible meeting time with=

[#61833] Re: Plan Developers Meeting Japan April 2014 — Martin Bo煬et <martin.bosslet@...> 2014/04/03

Hi,

[ruby-core:61802] [ruby-trunk - Bug #9691] Wrong value on float

From: andrew@...
Date: 2014-04-01 18:26:10 UTC
List: ruby-core #61802
Issue #9691 has been updated by Andrew Vit.


Use Fixnum (14995 * 100) or BigDecimal:

~~~
require 'bigdecimal'
d = BigDecimal.new('149.95')
d * 100
# => 0.14995E5
~~~

More info on floating point vs. decimal numbers:
http://www.youtube.com/watch?v=PZRI1IfStY0

----------------------------------------
Bug #9691: Wrong value on float
https://bugs.ruby-lang.org/issues/9691#change-46037

* Author: Mattias Bodlund
* Status: Rejected
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: 2.1.0
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
Getting strange value on multiplying a float

 149.95 * 100
 => 14994.999999999998



-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next