(getreal [prompt])


Ask the user to specify a real number.


This function waits for user input of a real number and returns that real number. You can supply a prompt argument asking the user to enter a number.

Examples

Code Returns
(getreal)
[type -5]
no response
-5.0
(getreal "Scale factor: ")
[type 5
Scale factor
5.0

Tell me about...

(getint [prompt])

(getpoint [point] [prompt])

(getstring [flag] [prompt])

LISP Compatibility

Programming Overview of LISP (LISt Processing) Language