[jira] Commented: (MATH-151) MathUtils.round incorrect result

2006-06-20 Thread Phil Steitz (JIRA)
[ http://issues.apache.org/jira/browse/MATH-151?page=comments#action_12416856 ] Phil Steitz commented on MATH-151: -- +1 to nextAfter as addition to MathUtils and for the approach outlined above for resolving this issue. Thanks in advance for patches. > M

[jira] Commented: (MATH-151) MathUtils.round incorrect result

2006-06-14 Thread Luc Maisonobe (JIRA)
[ http://issues.apache.org/jira/browse/MATH-151?page=comments#action_12416287 ] Luc Maisonobe commented on MATH-151: I was looking for a way to characterize those "bad" IEEE754 representations. Here is one proposal: we could had an implementation of th

[jira] Commented: (MATH-151) MathUtils.round incorrect result

2006-06-11 Thread Phil Steitz (JIRA)
[ http://issues.apache.org/jira/browse/MATH-151?page=comments#action_12415774 ] Phil Steitz commented on MATH-151: -- Sorry, messed up the link yet again. Best to just look at http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache

[jira] Commented: (MATH-151) MathUtils.round incorrect result

2006-06-11 Thread Phil Steitz (JIRA)
[ http://issues.apache.org/jira/browse/MATH-151?page=comments#action_12415764 ] Phil Steitz commented on MATH-151: -- I understand and agree with your analysis of the IEEE754 representation, but I would still like to see if there is anyting clever that we ca

[jira] Commented: (MATH-151) MathUtils.round incorrect result

2006-06-11 Thread Luc Maisonobe (JIRA)
[ http://issues.apache.org/jira/browse/MATH-151?page=comments#action_12415733 ] Luc Maisonobe commented on MATH-151: The point is neither on the rounding method not on the scale factor, it is rather on the initial number itself. 39.245 has no exact repr

[jira] Commented: (MATH-151) MathUtils.round incorrect result

2006-06-10 Thread Phil Steitz (JIRA)
[ http://issues.apache.org/jira/browse/MATH-151?page=comments#action_12415723 ] Phil Steitz commented on MATH-151: -- Thanks for digging into this, Luc. I agree that the source of the problem here is in the decimal - binary conversion; but I don't want to c

[jira] Commented: (MATH-151) MathUtils.round incorrect result

2006-06-06 Thread Luc Maisonobe (JIRA)
[ http://issues.apache.org/jira/browse/MATH-151?page=comments#action_12415048 ] Luc Maisonobe commented on MATH-151: I think this behaviour is normal. Despite 39.245 has a finite representation in decimal, this is not true in base 2, it has a infinite n

[jira] Commented: (MATH-151) MathUtils.round incorrect result

2006-06-06 Thread Phil Steitz (JIRA)
[ http://issues.apache.org/jira/browse/MATH-151?page=comments#action_12414956 ] Phil Steitz commented on MATH-151: -- Thanks for reporting this bug. Could be we want to reconsider the changes applied to address http://issues.apache.org/jira/browse/MATH-32.