 |
use system decimal point defines the decimal separator. If TRUE (default), the decimal separator uses the localized decimal separator. If FALSE, the decimal separator is a period.
|
 |
number can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on.
|
 |
width must be numeric. If unwired, the function uses exactly as many digits as are needed to represent the number, with no extra padding.
|
 |
precision must be numeric. The function rounds the number of digits after the decimal point of the output string to precision.
|
 |
F-format string is the resulting fractional string. F-format string can be Inf, -Inf, or NaN if the value you wire to number is infinity or is not a number. The following table shows how the values of number, width, and precision affect F-format string. In this table, the underline character ( _ ) represents a space in F-format string.
number | width | precision | F-format string | Comments |
4.925 | 6 | 2 | _ _4.92 | number is rounded, padded with spaces on the left. |
.003926 | 8 | 4 | _ _0.0039 | number is rounded, padded with spaces on the left. |
–287.3 | 5 | 0 | _–287 | number is rounded, padded with spaces on the left. |
|