|
Contents | Previous | Next | Subchapters |
| Syntax |
ntoa(numbers) |
| See Also | atod , atoi , char , format |
ntoa will return a character matrix with 10 columns.
This function is useful when you want to display a
number as text in a graphics plot or when you want to use different
formats for outputting different columns of a matrix.
format real "f10.5"
x = ntoa({4., 3., pi})
format real "f5.1"
y = ntoa({4., 3., pi})
print [x, y]
returns
4.00000 4.0
3.00000 3.0
3.14159 3.1
You can restore real formatting to its original value with the command
format real ""