0

Is there any rule that quotient must be integer only ?

when 1.25%0.5 the result is 0.25. since both of them are float, can't its quotient become float? one more thing when i tried 1.25/0.5 i got NO OUTPUT why?

11/5/2016 3:49:24 AM

Dinesh Devaki

1 Answer

New Answer

+2

/ gives you quotient in flot with remainder 0 // gives you quotient in only in integer % gives you remainder. 4/2 : 2 4//2 : 2 4%2 : 0 5/2 : 2.5 5//2 : 2 5%2 : 1