|
User Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./toolbox paddedstring.pro
paddedstring |
Format a number as a string, ensuring that it is padded with a leading zero so that there are always 2 digits before the optional decimal point. This could be generalized for use with numbers larger than 2 digits before the decimal point, but that is all I needed for now.
Parameters | |
number |
The number to convert. |
Keywords | |
precision |
The number of characters after the decimal point. If precision is 0 (the default), no decimal point appears in the returned value. |