what's modulo means and 1.25$0.5=0.25 really don't understand anyone can help? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what's modulo means and 1.25$0.5=0.25 really don't understand anyone can help?

20th Oct 2016, 2:45 AM
Zeng Rong Lin
Zeng Rong Lin - avatar
4 Answers
+ 2
Mod measures the remainder. So in $1.25, $0.50 goes into it evenly 2 times, and the remainder is $0.25.
20th Oct 2016, 4:03 AM
hirammvp
hirammvp - avatar
0
thanks
20th Oct 2016, 4:04 AM
Zeng Rong Lin
Zeng Rong Lin - avatar
0
Small thing, '
#x27; is something different then '%'. % checks for the remainder.
20th Oct 2016, 4:23 PM
Tom Post
Tom Post - avatar
0
1.25=0.5*2+0.25,the remainder is 0.25
22nd Oct 2016, 1:43 PM
ZhaoHang