Hello
How can I format a decimal number so that:
. the width of the whole number is 10 characters
. 2 digits always after the decimal point
. for positive and negative numbers
Format(34.5, “ ###0.00”) gives 34.50
This varies the number of spaces to the left of decimal point
Format(34.5, “ 0000.00”) gives 0034.50
This gives a fixed width but not for negative numbers and it looks ugly
I want to print tables and have the columns line up
For example (I hope the numbers below do line up)
Number1 Number2
-12.30 102.70
4.50 -300.50