I have a numeric value in a database field that is set up as 7,2 format (7 total length with decimal point at 2)
I am trying to change numeric values to a string.
For example I would like to change 148.32 to "0014832"
or 50.00 to "00005000"
It seems like I need to use a combination of STR() and
PADL() but I cannot seem to get PadL to work.
I tried this:
PadL(alltrim(str(mynumber)),4,"0")
but it does not seem to work.
Any ideas?
Thanks,
Dan
I am trying to change numeric values to a string.
For example I would like to change 148.32 to "0014832"
or 50.00 to "00005000"
It seems like I need to use a combination of STR() and
PADL() but I cannot seem to get PadL to work.
I tried this:
PadL(alltrim(str(mynumber)),4,"0")
but it does not seem to work.
Any ideas?
Thanks,
Dan