Elyasin (Elyasin Shaladi)
- Login: Elyasin
- Email: Elyas.Shaladi@gmail.com
- Registered on: 02/13/2015
- Last sign in: 02/13/2015
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
04/27/2015
-
10:15 AM Ruby Bug #10850: BigDecimal division incorrect
- Maybe you have an advice for the following I am thinking to use.
I could convert BigDecimal to Rational, do the calculation in Rational numbers and then convert that to back to BigDecimal.
Do you see any caveats with this approach?...
02/28/2015
-
02:14 AM Ruby Bug #10850: BigDecimal division incorrect
- Thanks for the answer Shugo,
however I am not sure if that is easily possible for me in that case. I use BigDecimal as a fiedl type in a Rails application and don't see how I can ues Rational here :-(
Any suggestions or tips or refe...
02/13/2015
-
11:14 AM Ruby Bug #10850 (Rejected): BigDecimal division incorrect
- I tried this in Ruby 2.1.4, 2.1.5 and 2.2.0, but in none of the versions it seems correct to me.
irb(main):041:0* amount1 = BigDecimal("241.3")
=> #<BigDecimal:7f49bcb03558,'0.2413E3',18(18)>
irb(main):042:0> amount2 = BigDecimal(...