I have a series of double variables, that can be anything from 0.00, to 000.00. What I want is to add leading zeros so that they all line up:
From:
$ 5.66
$ 12.12
$ 122.42
to something like:
$ 005.66
$ 012.12
$ 122.42
or better yet, a way to do:
any ideas?Code:$ 5.66 $ 12.12 $ 122.42 (forums messed up the spacing, sorry)




Reply With Quote