This Question has been **Answered**

Featured Replies

- 1
Modulo 10? eg: 54%10 = 4 Read More

- 1
[QUOTE=donaldw;1066249]Modulo 10? eg: 54%10 = 4[/QUOTE] TO expand x % 100 will give you the last 2 digits, and x % 1000 will give you last 3 digits, and in general : x % 10^n will give you the last n digits. IN the special case where n = 0, … Read More

- 1
[QUOTE=firstPerson;1066334]x % 10^n will give you the last n digits. IN the special casewhere n = 0, the result will always be 0, since you ask to get the last "0" digits, which does not make sense.[/QUOTE] Right. Or, mathematically, because the modulo represents the remainder after performing an integer … Read More

This question has already been answered. Start a new discussion instead.

Recommended Topics