>You have to find the number of decimals in some way. From the top of my head, the only way I can remember is to List Structure to a file, and then parse that file.
How about aFields() function? The array has the same info as list structure (and actually more, which is irrelevant in this case).