|
Contents | Previous | Next | Subchapters |
| Syntax |
format int places
|
| See Also | format and format float |
clear
format int "5"
each subsequent integer value output will be
right-justified in five columns. If you then enter
x = [1, 2, 3]
x
O-Matrix will respond
[ 1 , 2 , 3 ]
The format statement also affects the values
output by the write
function.
If you continue the example above by entering
write("screen", x)
O-Matrix will respond
1 2 3
Note that the write
function inserts an extra space between elements of the matrix.
Entering
format int ""
will reset integer output to have no leading spaces.