volendo puoi trasformare il numero in String e usando substring ti prendi il numero di cifre che ti interessano