Skip to content

disp

builtin · libnexusinterp/corefcn/pr-output-proprietary.cc

: disp (x)
: str = disp (x)

Show the value of x, without printing a variable name.

For example:

disp ("The value of pi is:"), disp (pi)

     -| the value of pi is:
     -| 3.1416

The text written by disp always finishes with a newline.

When a return value is requested, disp writes nothing to the screen and hands back the formatted text as a string instead.