Project

General

Profile

Actions

Bug #1646

closed

BigDecimal で浮動小数点数への変換が正しく行なわれないことがある

Added by tadf (tadayoshi funaba) almost 15 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2009-06-17 trunk 23726) [i686-linux]
Backport:
[ruby-dev:38673]

Description

=begin
BigDecimal で浮動小数点数への変換が正しく行なわれないことがある

irb -r bigdecimal -r bigdecimal/util
main@192-20090617> Float::MAX
#=> 1.7976931348623157e+308
main@192-20090617> Float::MAX.to_d
#=> #<BigDecimal:83e4aa0,'0.1797693134 8623157E309',20(24)>
main@192-20090617> Float::MAX.to_d.to_f
#=> Infinity
=end

Actions #1

Updated by yugui (Yuki Sonoda) almost 15 years ago

  • Status changed from Open to Closed

=begin
Applied in r23737.
=end

Actions

Also available in: Atom PDF

Like0
Like0