# (fix number)
[GstarCAD 2012](../../../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 2 recorded inherited issue(s). [Source issue details](../../../Source%20Issues.md).
<!-- /help-structure:notice -->
<a id="175"></a>
## (fix number)
---
Convert that real number into an integer.
---
This function changes the *number* to an [integer](../../../Source%20Issues.md#issue-eecce708bc7318d5). [Real numbers](../../../Source%20Issues.md#issue-d52529104424172b) are changed to integers by truncating everything after the decimal point; no attempt is made to round off the number.
### Examples
| Code | Returns |
| --- | --- |
| (**fix** 3\) | 3 |
| (**fix** pi) | 3 |
| (**fix** 7.999) | 7 |
**Tell me about...**
[(atof string)](IDR_LISP_B131.md)
[(atoi string)](%28atoi%20string%29.md)
[(float number)](%28float%20number%29.md)
[(itoa integer)](%28itoa%20integer%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 2011](../../../../2011/Developer%20Reference/AutoLISP%20Reference/LISP%20Functions/%28fix%20number%29.md)