# (getint \[prompt\]) [GstarCAD 2011](../../../Index.md) → [Developer Reference](../../%28Developer%20Reference%29.md) → [AutoLISP Reference](../%28AutoLISP%20Reference%29.md) → [LISP Functions](%28LISP%20Functions%29.md) <!-- help-structure:notice --> > **Source status:** This source topic has 1 recorded inherited issue(s). [Source issue details](../../../Source%20Issues.md). <!-- /help-structure:notice --> <a id="189"></a> ## (getint \[prompt\]) --- Ask the user to specify an integer. --- This function asks the user to input an [integer](../../../Source%20Issues.md#issue-cd7b33620bac8fcc), 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 | **Tell me about...** [(getkword \[prompt\])](%28getkword%20-prompt-%29.md) [(getreal \[prompt\])](%28getreal%20-prompt-%29.md) [(getstring \[flag\] \[prompt\])](%28getstring%20-flag-%20-prompt-%29.md) [LISP Compatibility](../LISP%20Compatibility.md) [Programming Overview of LISP (LISt Processing) Language](../Programming%20Overview%20of%20LISP%20%28LISt%20Processing%29%20Language.md) <a id="holding"></a> ## Other versions with matching text [GstarCAD 2012](../../../../2012/Developer%20Reference/AutoLISP%20Reference/LISP%20Functions/%28getint%20-prompt-%29.md)