From: oinkoink+unet@... (Bret Jolly) Date: 2003-09-03T03:52:56+09:00 Subject: BigDecimal Bugs I can't get BigDecimal to generate a -Infinity, using the same tricks that used to work with BigFloat. irb(main):001:0> require 'bigdecimal' true irb(main):002:0> c = BigDecimal.new("1")/BigDecimal.new("0") # irb(main):003:0> c = -c # irb(main):004:0> c = BigDecimal.new("-1")/BigDecimal.new("0") # irb(main):005:0> c = BigDecimal.new("1")/BigDecimal.new("-0") # BigDecimal also does not compare with Float, though it does apparently compare with Integer. irb(main):006:0> c = BigDecimal.new("3.0") # irb(main):007:0> c < 7 true irb(main):008:0> c < 7.0 false This is the BigDecimal class that comes with Ruby 1.8.0 Regards, Bret