How can i format integer that should have a format of 0000, when the integer is 5 the formatted value should return 0500, when the integer is 10 it should return 1000 and so