# \[Ruby 1.9 - Bug #388\] (Open) BigDecimal \<=\> Float # =\> nil

**URL:** <https://www.ruby-forum.com/t/ruby-1-9-bug-388-open-bigdecimal-float-nil/144795>\
**Category:** Development\
**Created:** [August 2, 2008, 5:13am UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-388-open-bigdecimal-float-nil/144795 "2008-08-02T05:13:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pegacorn\_jp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c67d28/32.png) [@pegacorn\_jp](https://www.ruby-forum.com/u/pegacorn_jp)\
**Post date:** [August 2, 2008, 5:13am UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-388-open-bigdecimal-float-nil/144795/1 "2008-08-02T05:13:26Z")

</div>

e$B%A%1%C%He(B #388 e$B$,Js9p$5$l$^$7$?!#e(B (by pegacorn jp)

* * *

Bug #388: BigDecimal \<=\> Float # =\> nil  
[http://redmine.ruby-lang.org/issues/show/388](http://redmine.ruby-lang.org/issues/show/388)

e$B5/I\<\<Te(B: pegacorn jp  
e$B%9%F!\<%?%9e(B: Open  
e$BM%@hEYe(B: Normal  
e$BC4Ev\<Te(B:  
e$B%+%F%4%je(B: ext  
Target version:

[ruby-dev:35665]  
% ruby -v  
ruby 1.9.0 (2008-08-02 revision 18315) [i386-freebsd7.0]  
% ruby -r bigdecimal -e ‘p BigDecimal(“1.0”) \<=\> 1.0’  
nil  
% ruby -r bigdecimal -e ‘p BigDecimal(“1.0”) == 1.0’  
true  
% ruby -r bigdecimal -e ‘p BigDecimal(“1.0”) \< 1.0’  
false
