I have a field on my form for dollars. I has a max length of 8 chars. I'm storing this field to my database. Say a user enters in the following, I need it zero filled and the decimal stripped off:
566.38 = 00056638
239.40 = 00023940
432 = 00043200 if the user didn't enter a decimal
566.38 = 00056638
239.40 = 00023940
432 = 00043200 if the user didn't enter a decimal