%FORMAT Set output format.
%   FORMAT with no inputs sets the output format to the default appropriate
%   for the class of the variable. For float variables, the default is
%   FORMAT SHORT.
%
%   FORMAT does not affect how MATLAB computations are done. Computations
%   on float variables, namely single or double, are done in appropriate
%   floating point precision, no matter how those variables are displayed. 
%   Computations on integer variables are done natively in integer. Integer
%   variables are always displayed to the appropriate number of digits for
%   the class, for example, 3 digits to display the INT8 range -128:127.
%   FORMAT SHORT and LONG do not affect the display of integer variables.
%
%   FORMAT may be used to switch between different output display formats
%   of all float variables as follows:
%     FORMAT SHORT     Short fixed point format with 4 digits after the 
%                      decimal point.
%     FORMAT LONG      Long fixed point format with 15 digits after the 
%                      decimal point for double values and 7 digits after 
%                      the decimal point for single values.
%     FORMAT SHORTE    Short scientific notation with 4 digits after the 
%                      decimal point.
%     FORMAT LONGE     Long scientific notation with 15 digits after the 
%                      decimal point for double values and 7 digits after 
%                      the decimal point for single values.
%     FORMAT SHORTG    Short fixed format or scientific notation, 
%                      whichever is more compact, with a total of 5 digits.
%     FORMAT LONGG     Long fixed format or scientific notation, whichever
%                      is more compact, with a total of 15 digits for 
%                      double values and 7 digits for single values.
%     FORMAT SHORTENG  Engineering format with 4 digits after the decimal
%                      point and a power that is a multiple of three.
%     FORMAT LONGENG   Engineering format that has exactly 15 significant
%                      digits and a power that is a multiple of three.
%
%   FORMAT may be used to switch between different output display formats
%   of all numeric variables as follows:
%     FORMAT HEX       Hexadecimal format.
%     FORMAT +         The symbols +, - and blank are printed 
%                      for positive, negative and zero elements.
%                      Imaginary parts are ignored.
%     FORMAT BANK      Currency format with 2 digits after the decimal 
%                      point.
%     FORMAT RATIONAL  Approximation by ratio of small integers. Numbers
%                      with a large numerator or large denominator are
%                      replaced by *.
%
%   FORMAT may be used to affect the spacing in the display of all
%   variables as follows:
%     FORMAT COMPACT  Suppresses extra line-feeds.
%     FORMAT LOOSE    Puts the extra line-feeds back in.
%
%   Example:
%      format short, pi, single(pi)
%   displays both double and single pi with 5 digits as 3.1416 while
%      format long, pi, single(pi)
%   displays pi as 3.141592653589793 and single(pi) as 3.1415927.
%
%      format, intmax('uint64'), realmax
%   shows these values as 18446744073709551615 and 1.7977e+308 while
%      format hex, intmax('uint64'), realmax
%   shows them as ffffffffffffffff and 7fefffffffffffff respectively.
%   The HEX display corresponds to the internal representation of the value
%   and is not the same as the hexadecimal notation in the C programming
%   language.
%
%   See also DISP, DISPLAY, ISNUMERIC, ISFLOAT, ISINTEGER.

%   Copyright 1984-2020 The MathWorks, Inc.
%   Built-in function.
