(getint [prompt])
Ask the user to specify an integer.
This function asks the user to input an integer, and returns that integer. You can include a prompt argument to ask for the integer. The valid integer range is from -2,147,483,648 to +2,147,483,647.
Examples
| Code | Returns |
|---|---|
|
(getint) |
7.0 |
|
(getint "Enter a number: ") |
7.0 |
en
italiano
čeština
Deutsch
français
hrvatski
magyar
polski
српски
русский
中文
中文
한국어
español