I just wanted to share some knowledge i gained.
There is a method Math.IEEEremainder(double,double) which can give you the a result which can be sometimes equivalent to % operation.
Here goes the actual explanation from API..
Computes the remainder operation on two arguments as prescribed by the IEEE 754 standard. The remainder value is mathematically equal to f1 - f2 � n, where n is the mathematical integer closest to the exact mathematical value of the quotient f1/f2, and if two mathematical integers are equally close to f1/f2, then n is the integer that is even. If the remainder is zero, its sign is the same as the sign of the first argument.
and some results...
IEEEremainder(10.5, 2.5) 0.5
IEEEremainder(11, 2.5) 1.0
IEEEremainder(9.5, 2.5) -0.5
IEEEremainder(9.0, 2.5) -1.0
IEEEremainder(8.0, 2.5) 0.5
IEEEremainder(8.5, 2.5) 1.0
IEEEremainder(7.4, 2.5) -0.09999999999999964
[This message has been edited by lakshmi nair (edited November 16, 2000).]