con l'operatore Mod

risultato = 10 Mod 3

HTH