> Excuse me, Mr_Evil, but I am a new programer, I try
> to use that instruction, but I don't get it. Do you
> have some example about that instruction. I
> appreciate your efforts for me.
>
> Thanks
This is what Mr_Evil meant:double originalValue = 0.0d;
for(int i = 0; i < 10; i++) {
originalValue += 0.1d;
}
// round originalValue to the closest (mathematical) integer
double roundedValue = Math.rint(originalValue);
System.out.println("Is the original value "+originalValue+
" an integer? "+(originalValue == roundedValue));
; )