bigdecimal
bigdecimal copied to clipboard
Arbitrary-precision decimal floating-point number library for Ruby
The documentation for `BigDecimal#sign` is incorrect. It reads: > Returns a positive value if > 0, a negative value if < 0, and a zero if == 0. https://github.com/ruby/bigdecimal/blob/f3e6bfde51375fb873f5ecda897338504743ff13/ext/bigdecimal/bigdecimal.c#L2735-L2736 However,...
e.g. `round == self` Would be nice for things like skiping the `.0` in `1.0`
I have recently become aware of Ruby 3.4 dropping support for BigDecimal and that it must be installed as an additional dependency. We tried adding the BigDecimal dependency to our...
Hello, the following causes a memory leak. I left a commented line, both trigger an memory leak. I assume it's the same bug ``` require 'bigdecimal' BigDecimal.mode(BigDecimal::EXCEPTION_OVERFLOW, true) 10.times do...
I was trying to install ruby 3.0.6 on Sonoma 14.3.1 using rbenv: ``` ruby-build: using readline from homebrew ruby-build: using libyaml from homebrew ruby-build: using gmp from homebrew -> ./configure...
By providing a 'changelog_uri' in the metadata of the gemspec a 'Changelog' link will be shown on https://rubygems.org/gems/bigdecimal which makes it quick and easy for someone to check on the...