Skip to Content
0
May 28 at 01:42 PM

modulus in java of floating points

44 Views Last edit May 28 at 06:47 AM 2 rev

class Example{ public static void main(String args[])

{ System.out.print(5.5%1.1);

}

} //the output is 1.99999999999996 but i can't understand why is that.