Re: [NUMBERS] : findbug failing in commons-number-core

2017-06-12 Thread Gilles
Hi Amey. On Sun, 11 Jun 2017 23:30:04 +0530, Amey wrote: Hi Gilles, On Thursday 08 June 2017 03:22 AM, Gilles wrote: Hello. On Wed, 7 Jun 2017 23:52:59 +0530, Amey Jadiye wrote: Hi, I was trying to run all checks on commons-number and found findbug is failing in Precision.java[544] FE_FLO

Re: [NUMBERS] : findbug failing in commons-number-core

2017-06-11 Thread Amey
Hi Gilles, On Thursday 08 June 2017 03:22 AM, Gilles wrote: > Hello. > > On Wed, 7 Jun 2017 23:52:59 +0530, Amey Jadiye wrote: >> Hi, >> >> I was trying to run all checks on commons-number and found findbug is >> failing in Precision.java[544] FE_FLOATING_POINT_EQUALITY >> >> {code} >> case BigDec

Re: [NUMBERS] : findbug failing in commons-number-core

2017-06-07 Thread Gilles
Hello. On Wed, 7 Jun 2017 23:52:59 +0530, Amey Jadiye wrote: Hi, I was trying to run all checks on commons-number and found findbug is failing in Precision.java[544] FE_FLOATING_POINT_EQUALITY {code} case BigDecimal.ROUND_HALF_EVEN : { double fraction = unscaled - Math.floor(unscal

[NUMBERS] : findbug failing in commons-number-core

2017-06-07 Thread Amey Jadiye
Hi, I was trying to run all checks on commons-number and found findbug is failing in Precision.java[544] FE_FLOATING_POINT_EQUALITY {code} case BigDecimal.ROUND_HALF_EVEN : { double fraction = unscaled - Math.floor(unscaled); if (fraction > 0.5) { unscaled