pp
Definition: | pp(object o, sequence options={}) |
Description: |
Pretty print the specified object. For options, see ppOpt. |
pwa/p2js: | Supported. |
Comments: |
The previous pretty_print options are restored on exit.
ppEx is a pre optional parameters version of this routine. |
Example: |
ppOpt({pp_IntFmt,"%d.00 US$"}) ppOpt({pp_FltFmt,"%.2f US$"}) pp(1) -- prints "1.00 US$" Note the deliberate setting of both pp_IntFmt and pp_FltFmt to yield consistent results. The following one line could be used instead of the above, apart from the options not being permanent: pp(1,{pp_IntFmt,"%d.00 US$",pp_FltFmt,"%.2f US$"}) |
See Also: | ppOpt, ppf |