Not sure if this is what you want, but to break the number 179 up into units. Then something like this would work, there will be better ways, but in the mean time:
_Tens=179 Mod 100
_Hundreds=(179-_Tens) / 100
_Ones=(_Tens Mod 1)
_Tens=(_Tens-_Ones) / 10
_Ones=(_Ones-(_Ones Mod 1)) / 1
If it's altitude, then you will want to include thousands e.t.c.
Anyway hope this helps.