Modulus integer conversion | Sololearn: Learn to code for FREE!

+3

Modulus integer conversion

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

7/1/2016 8:54:10 AM

Midhun Mathew

3 Answers

New Answer

+2

conversion is done by truncating the characters starting from the decimal point. Hence 14.8 becomes 14

0

0

14,取小数点以前的位数