Repository navigation
dos_getreal
Dale Fugier edited this page Jul 1, 2026
·
1 revision
Windows Dialog box equivalent to LISP getreal function. Real numbers are double-precision floating-point values, providing at least 14 significant digits of precision. Values can be expressed in scientific notation, which has an optional e or E followed by the exponent of the number (for example, 0.0000041 is the same as 4.1e-6).
(dos_getreal title prompt [flags [default [max [min]]]])
title
A string containing the dialog box title.
prompt
A string containing a prompt.
flags
An optional bit-coded integer identifying the desired validation. Specify more than one validation by adding the following bit values:
| Value | Description |
|---|---|
| 0 | No additional validation. |
| 1 | Do not allow a null, or empty, value. |
| 2 | Do not allow a zero value. |
| 4 | Do not allow a negative value. |
default
An optional default value.
max
An optional maximum allowable value.
min
An optional minimum allowable value.
A real number, if successful.
nil on cancel or on error
Command: (dos_getreal "Distance" "Enter a distance")
23.4