100 NEXT 110 CLOSE l:CLOSE 2:CLOSE 3:CLOSE 4 +0001. +0002. +0003. +0004. +0005. +0006. +0007. +0008. +0009. +0010. +0002. +0003. +0004. +0005. +0006. +0007. +0008. +0009. +0010. +0011. 0003. 0004. 0005. 0006. 0007. 0008. 0009. 0010. 0011. 0012. 0004 0005 0006 0007 0008 0009 0010 0011 0012 0013 Signed Numbers As shown below, a uailing sign, when specified in a format state- ment, either prints a blank for a positive number, or a minus ( - ) for a negative number. This form is sometimes desired by accountants. A leading sign always prints a plus ( + ) or a minus ( - ) for the sign of the number. If no sign is specified in the format, then no sign is printed.
This works essentially like an absolute value on the number. 10 OPEN 1,4 20 OPEN 2,4,1 30 OPEN 3,4,2 40 OPEN 4,4,4 50 PRINT #4 :REM ENABLE ERROR DIAGNOSTICS 60 = "999 S999 999 - " 70 PRINT #3 ,F$ 80 PRINT #2, - 1, - 1, - 1 90 CLOSE l:CLOSE 2:CLOSE 3:CLOSE4 1 l 1- Decimal Fraction Specification When the right hand side of the decimal point in a format statement has more digits of precision specified than contained in the formatted data, the remaining digit positions are filled with zeroes. If the reverse is uue, then the formatted number is truncated. 10 OPEN 1,4 20 OPEN 2,4,1 30 OPEN 3,4,2 40 OPEN 4,4,4 C-3