Hi Andreas,
> Author: adelmelle
> Date: Sun Feb 10 05:01:07 2008
> New Revision: 620277
<snip/>
> + private NumberProperty(double num) {
> + //Store the number as an int or a long,
> + //if possible
> + if ((num >= 0 && num == Math.floor(num))
> + || num == Math.ceil(num)) {
Isn’t that the same as
if (num == Math.floor(num))
? Or replace floor with ceil or rint, basically if the number actually
is an integer, then the 3 methods should return a value equal to num
itself.
Unless I missed something?
Vincent
--
Vincent Hennebert Anyware Technologies
http://people.apache.org/~vhennebert http://www.anyware-tech.com
Apache FOP Committer FOP Development/Consulting