Skip to content

Conversation

vipulnsward
Copy link

Currently

9.05.to_d.to_s('F') => "9.050000000000001"

which adds the extra '1'
This patch tries to fix this behaviour and associated tests

9.05.to_d.to_s('F') => "9.050000000000001"

which adds the extra '1'
This patch tries to fix this behaviour and associated tests
@vipulnsward
Copy link
Author

cc @mrkn

@evanphx evanphx closed this in 1699396 Jun 4, 2013
@judofyr
Copy link

judofyr commented Jun 4, 2013

Anyone knows why it was Float::DIG+1 earlier?

@zzak
Copy link
Member

zzak commented Jun 4, 2013

@judofyr Here's the commit: 079fb8d

tenderlove pushed a commit to tenderlove/ruby that referenced this pull request Jan 24, 2014
  of figures.  Patch by Vipul A M <vipulnsward@gmail.com>.
  ruby#323  fix rubyGH-323

* test/bigdecimal/test_bigdecimal_util.rb: fix for the above change.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kenichi added a commit to kenichi/terraformer-ruby that referenced this pull request May 8, 2014
mrkn added a commit to ruby/bigdecimal that referenced this pull request Dec 25, 2015
  of figures.  Patch by Vipul A M <vipulnsward@gmail.com>.
  ruby/ruby#323  fix GH-323

* test/bigdecimal/test_bigdecimal_util.rb: fix for the above change.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kddnewton added a commit to kddnewton/ruby that referenced this pull request Jul 19, 2022
* CSEL on AArch64

* Implement various Op::CSel* instructions
kddnewton added a commit to kddnewton/ruby that referenced this pull request Jul 21, 2022
* CSEL on AArch64

* Implement various Op::CSel* instructions
jhawthorn pushed a commit to jhawthorn/ruby that referenced this pull request Aug 3, 2022
* CSEL on AArch64

* Implement various Op::CSel* instructions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants