Modulus integer conversion | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Modulus integer conversion

when we perform an operation like 14.8% 3 will float be changed to integer 14 or 15

1st Jul 2016, 8:54 AM
Midhun Mathew
3 Answers
+ 2
conversion is done by truncating the characters starting from the decimal point. Hence 14.8 becomes 14
1st Jul 2016, 8:57 AM
Midhun Mathew
0
14
15th Jul 2016, 11:30 AM
sumit kumawat
sumit kumawat - avatar
0
14,取小数点以前的位数
21st Nov 2016, 8:03 AM
vgbh