Why modulo (%) active with float:

edited January 2014 in Programming Questions

V 2.0.3 Windows 7
println(4%3);
println(4.5%3);
println(4.0%3.0);
println(3.5%4.0);
//--------
Output
1
1.5
1.0
3.5

Answers

Sign In or Register to comment.