This version changes two things. First, it now adds decplaces as a keyword to set the number of decimal places in the output. Second, if decplaces=-1, it returns all precision in the input. Eg, \fmtnum[decplaces=-1]{12.675E-002} outputs 0.12675. http://math.ucsd.edu/~msharpe/numberformat.zip