<< echo Display format formattedDisplayText >>

format


Display format and number printing.


Syntax


fmt = format()
format()
format('default')
format(new_style)

Input argument


new_style

a string

Output argument


fmt

DisplayFormatOptions object: format used

Description


format(new_style) changes the display format and number printing of the current session.

format('default') will reset to default format (short, loose).

Styles supported:

short

long

shortE

longE

shortEng

longEng

plus

rational

hex

Line Spacing Format supported:

loose

compact

Example


an example

current_style = format()
pi
format('short')
pi
format('long')
pi
format('shortE')
pi
format('longE')
pi
format('hex')
pi
format('+')
pi
format('rational')
pi
format('compact')
pi
format(current_style)
pi

See also


disp, display.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< echo Display format formattedDisplayText >>