variable number of decimals | Ben Bimber | 2010-11-05 09:28 | |||||||||||||||
Status: Closed | |||||||||||||||||
we have a table of weights. weights >1kg are accurate to 2 decimals. weights less than 1 are accurate to 3. in a perfect world, weights would display like: 17.20 0.394 0.300 as opposed to 17.2 0.394 0.3 Several users dont like the fact that since number columns are right aligned, the 0.394 and 0.3 are not lined up. Is there anything we can do about that? I think I could add a format string to force 3 decimals; however, we would only want 3 decimals for numbers <1, and 2 decimals for numbers >1. Are there tricks I'm not thinking of? Thanks for the help. |
|||||||||||||||||
| |||||||||||||||||