From: Daniel Berger Date: 2007-03-14T01:31:32+09:00 Subject: Re: BigDecimal bug? On Mar 13, 5:08 am, Mark Somerville wrote: > Hello, > > Can anyone tell me if this is a bug? It certainly seems like it to me. > > >> BigDecimal.new("-.31").to_s > > => "0.31" > > $ ruby -v > ruby 1.8.5 (2006-12-04 patchlevel 2) [x86_64-linux] Looks like a bug to me. I think it's in the VpToString() function being called by the BigDecimal_to_s() function. I'm not positive, though, as the code is long and ugly. Please submit a bug report to ruby-core. Thanks, Dan