  format
  Builtin Function



      SSyynnooppssiiss
        Set the printing format.

      SSyynnttaaxx
        format ( )

        format ( _P_R_E_C_I_S_I_O_N )

        format ( _W_I_D_T_H, _P_R_E_C_I_S_I_O_N )

        format ( [ _W_I_D_T_H, _P_R_E_C_I_S_I_O_N ] )

      DDeessccrriippttiioonn
        Format sets the output print format for all numeric output. If
        no arguments are supplied, then the output print formats are
        reset to the default values.



        _P_R_E_C_I_S_I_O_N
           represents the precision with which numbers will be printed.
           For instance, if _P_R_E_C_I_S_I_O_N has a value of 4, then 4
           significant digits will be printed for numeric values.


        _W_I_D_T_H
           represents the minimum field width of the formatted output.


        Format returns a 2-element matrix contains the previous width
        and precision values. Subsequently, this matrix can be used to
        reset format.

        Example:



























     > 123456789.123456789
      1.235e+08
     > format(10);
     > 123456789.123456789
     123456789.1
     > format();
     > a = rand(3,3)
      a =
      matrix columns 1 thru 3
              1      0.3331      0.6646
         0.9745     0.03694     0.08467
         0.6475      0.1617      0.2041
     > format(10);
     > a
      a =
      matrix columns 1 thru 3
     0.9999996424  0.3330855668  0.6646450162
     0.9745196104  0.03694454208  0.08467286825
     0.6474838853  0.1617118716  0.2041363865
     > format(15,10);
     > a
      a =
      matrix columns 1 thru 3
        0.9999996424     0.3330855668     0.6646450162
        0.9745196104    0.03694454208    0.08467286825
        0.6474838853     0.1617118716     0.2041363865








































