format

March 6th, 2008 Posted in Functions

Set output .
All computations in are done in double precision.
format may be used to between different output display formats as follows:
format Default. Same as SHORT.
format SHORT Scaled fixed point format with 5 digits.
format LONG Scaled fixed point format with 15 digits.
format SHORT E format with 5 digits.
format LONG E Floating point format with 15 digits.
format SHORT G Best of fixed or floating point format with 5 digits.
format LONG G Best of fixed or floating point format with 15 digits.
format HEX Hexadecimal format.
format + The symbols +, – and blank are printed
positive, negative and zero elements.
Imaginary parts are ignored.
format BANK Fixed format for dollars and cents.
format RAT Approximation by ratio of small integers.

Spacing:
format COMPACT Suppress extra line-feeds.
format LOOSE Puts the extra line-feeds back in.

Leave a Reply

You must be logged in to post a comment.