numberformat | |
ACTION: |
control how numbers are converted to strings
|
USE: |
change the format of numbers
|
EXAMPLE: |
numberformat 3,0,0,0 : print 3.14159 'result: 3.142 |
REMARKS: |
there are 6 parameters: 1 decimal places (0..16) 2 strip trailing zeros (0 or 1) 3 always use scientic notation E format (0 or 1) 4 suppress 0 before decimal point: 0.1 becomes .1 (0 or 1) 5 insert extra leading space for non-negative numbers (0 or 1) 6 width allocated before decimal point: (0..31) (inserting lead padding spaces) |
RELATED: |
print
frac
float
|