use the following code to convert the numeric value to text. On change of numeric value field just call this function to assign the value of text.
class
{
}
givenNumber %= 10000000;
givenNumber %= 100000;
givenNumber %= 1000;
givenNumber %= 100;
givenNumber %= 10;