getreal

(getreal [prompt])

The getreal function waits for user input of a floating-point value and returns the real number.

Arguments

prompt

If the optional argument prompt contains a valid string, it is displayed in the Command Window; otherwise, no prompt is displayed.

Return Value

The function returns the real number specified by the user.

Examples

: (getreal)

: (getreal "Width:")

Related Functions

initget, getint