Runtime enhancement: Three new numeric formatting mask characters added:
"N" behaves the same as "#", except that when placed after a decimal point, it causes any trailing zeros to be converted to blanks. If placed before the decimal point, and it is not followed by any "#" character prior to the decimal point, then it causes leading zeros to be convered to blanks. (This is similar to the normal case with "#", except that for values less than 1, "#" will display a leading zero whereas "N" will not.
"n" behaves just like "N", except that to the left of the decimal point it causes leading blanks to be stripped, and to the right of the decimal point, trailing blanks to be stripped.
"!" behaves like ".", except that if there are no non-zero digits to the right of the decimal point in the formatted output, it changes the decimal point in the formatted output to a space. Note that "!" is also used to denote a single character field in a PRINT USING MASK statement. The two different uses of the same mask character should be clear to the interpreter from the context.
Examples:
1234.5 using "$$###,###.###" displays " $1,234.500"
1234.5 using "$$###,###.NNN" displays " $1,234.5 "
1234.5 using "$$###,###.nnn" displays " $1,234.5"
1234.5 using "$$###,###!nnn" displays " $1,234.5"
1234.5 using "$$nnn,nnn!nnn" displays "$1,234.5"
1234.5 using "nnn,nnn.nnn$" displays "1,234.5 $"
1234.0 using "$$###,###!NNN" displays " $1,234 "
1234.0 using "$$###,###!nnn" displays " $1,234"
1234.0 using "$$nnn,nnn!nnn" displays "$1,234"
1234.0 using "$nnnn,nnn!nnn" displays "$ 1,234"
0 using "###.#" displays " 0.0"
0 using "###.N" displays " 0. "
0 using "NNN.n" displays " ."
0 using "NNN!n" displays ""
0 using "nnn.N" displays ". "
0 using "nnn!N" displays ""
0 using "nnn.n" displays "."
0 using "nnn!n" displays ""
1.23 using "n.###" displays "1.230"
0.23 using "n.###" displays ".230"