Another option (not restricted to the X1/X2 parts) is to consider the BINTOASCII command (See latest PICAXE Manual 2 (currently rev 6.8) page 29
BINTOASCII wordvariable, tenthousands, thousands, hundreds, tens, units
This will break out the digits but as ASCII values. (ASCII values are those encoded ready to send to say an LCD display)
To get from ASCII to actual value, for each digit subtract $30 (decimal 48)
For the previously mentioned DIG command see bottom of page 20 and also page 22