Produced by IDL 7.1.1
User Documentation

./toolbox
paddedstring.pro

Last modification date:
Wed Sep 28 13:27:11 2016

paddedstring

function paddedstring(number, [precision=integer])

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.

Returns
string representation of number at given precision.
Version
$Id$

Parameters
number
in, required
numeric
The number to convert.

Keywords
precision
in, optional
integer
The number of characters after the decimal point. If precision is 0 (the default), no decimal point appears in the returned value.


Produced by IDLdoc 1.6 on Wed Sep 28 13:27:39 2016