You could also use:
totext({table.number},replicatestring('0',8))
or even replace '8' with a global variable in order to be able to easily change the format but altering the variable's value, especially when using various formula fields that contain this expression.