commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles Sadowski <gil...@harfang.homelinux.org>
Subject [Math] Factorial
Date Tue, 02 Nov 2010 10:07:42 GMT
Hello.

In "MathUtils", the documentation of method "factorialDouble" says that it
will return INFINITY when the result is larger than MAX_VALUE. It also says
that this will happen when n > 170.  So, I think that it should be more
appropriate to throw an "ArithmeticException" (as is done in the method
"factorial" when n > 20).


Gilles

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message