<< exit core license >>

format


Display format and number printing.


Syntax


fmt = format()
format()
format(new_style)
fmt = format('get')

Input argument


new_style

a string

Output argument


fmt

a string: current format used

Description


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

format() without output and input arguments will reset to default format (short).

Current styles supported:

short

long

shortE

longE

hex

Example


an example

current_style = format()
current_style = format('get')
pi
format('short')
pi
format('long')
pi
format('shortE')
pi
format('longE')
pi
format('hex')
pi
format(current_style)

See also


disp.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< exit core license >>