https://bugs.documentfoundation.org/show_bug.cgi?id=97462

Julien Nabet <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Julien Nabet <[email protected]> ---
I suppose the relevant part is in
pentaho/reporting/libraries/formula/function/datetime/SecondFunction.java
     68     // time * 24 so that we get the full hours (which we remove later)
     69     final BigDecimal bd = NumberUtil.getAsBigDecimal(n);
     70     final BigDecimal hours = bd.multiply(MINUTES_PER_DAY);
     71     final BigDecimal dayAndHoursAsInt =
NumberUtil.performIntRounding(hours);
     72     final BigDecimal minutesFraction =
hours.subtract(dayAndHoursAsInt);
     73 
     74     // Multiply the minutes with 60 to get the minutes as ints
     75     final BigDecimal seconds = minutesFraction.multiply(SECONDS);
     76     final BigDecimal secondsAsInt =
NumberUtil.performIntRounding(seconds);

Some docs about performIntRounding:
http://javadoc.pentaho.com/reporting/libformula/org/pentaho/reporting/libraries/formula/util/NumberUtil.html#performIntRounding%28java.math.BigDecimal%29

So can we rely on performIntRounding?

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to