General

Profile

karatedog (Földes László)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 4 4

Activity

10/16/2020

03:22 PM Ruby Bug #17264 (Closed): BigDecimal exponentiation cannot be used with #** method
As stated in Bug #17214 (https://bugs.ruby-lang.org/issues/17214) when exponentiating a BigDdecimal number even when using small numbers, a precision argument must be passed to the operation or the operation will return wrong result, 222... karatedog (Földes László)

10/05/2020

11:15 AM Ruby Bug #17214: BigDecimal exponentiation gives incorrect results
If I increase the precision of the two arguments ("2222", "3.5"), but leave the operation's precision on default, the result still will be wrong.
``` ruby
(BigDecimal("2222",10000) ** BigDecimal("3.5",10000)).to_i
# => 517135311000
```
T...
karatedog (Földes László)
12:35 AM Ruby Bug #17214 (Rejected): BigDecimal exponentiation gives incorrect results
This is an incorrect value:
```ruby
(BigDecimal("2222") ** BigDecimal("3.5")).to_i
# => 517135311000
```
This is the correct value (within Float precision):
```ruby
2222 ** 3.5
# => 517135308457.25256
```
As the Base ge...
karatedog (Földes László)

05/20/2018

09:16 PM Ruby Bug #13754: bigdecimal with lower precision that Float
That is the same problem as here: https://bugs.ruby-lang.org/issues/8826
#/ is the same method as #quo (according to documentation both methods are defined in 'bigdecimal.c' at line 1281). Currently you can divide a bigdecimal by using ...
karatedog (Földes László)
06:55 PM Ruby Bug #8826: BigDecimal#div and #quo different behavior and inconsistencies
How should #div work? The above behavior is still in Ruby 2.5.1. karatedog (Földes László)

08/28/2013

03:43 AM Ruby Bug #8826 (Third Party's Issue): BigDecimal#div and #quo different behavior and inconsistencies
BigDecimal's #div and #quo method behave differently despite the #div documentation says: "See BigDecimal#quo"
#div returns Fixnum if there is no precision argument for #div (this parameter is not documented):
```
2.0.0-p247 :018 ...
karatedog (Földes László)

08/13/2012

05:58 PM Ruby Bug #6862 (Closed): BigMath.exp negative exponent
Ruby 1.9.3 BigMath.exp accepts Fixnum for exponent but silently treats negative exponents as positive:
1.9.3p260 :009 > BigMath.exp(3, 10)
=> #<BigDecimal:9be2ce8,'0.2008553692E2',18(72)>
1.9.3p260 :010 > BigMath.exp(-3, 10)
=> #<...
karatedog (Földes László)

Also available in: Atom