# (rtos number \[mode \[precision\]\]) [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 1 recorded inherited issue(s). [Source issue details](../../../Source%20Issues.md). <!-- /help-structure:notice --> <a id="258"></a> ## (rtos number \[mode \[precision\]\]) --- Convert that real number to a string. --- This function converts a [real number](../../../Source%20Issues.md#issue-f80b153585d6073b) to a string. The argument *number* is the real number you want to convert. *Mode* and *precision* arguments are optional arguments. The *mode* (1 through 5\) selects the format of the string: | Mode | Meaning | | --- | --- | | 1 | Scientific | | 2 | Decimal | | 3 | Engineering | | 4 | Architectural | | 5 | Fractional | The *precision* argument allows you to select the number of places after the decimal point. The range is 0 to 8\. ### Examples | Code | Returns | Format | | --- | --- | --- | | (**rtos** 15.35 1 4\) | "1.5350E\+001" | Scientific. | | (**rtos** 15.35 2 4\) | "15.3500" | Decimal. | | (**rtos** 15.35 3 4\) | "1'-3.3500" | Engineering. | | (**rtos** 15.35 4 4\) | "1'-3 1/4" | Architectural. | | (**rtos** 15.35 5 4\) | "15 3/8" | Fractional. | **NOTE**  When you leave them out, the *mode* and *precision* arguments read the settings of system variables LUNITS (default \= decimal units) and LUPREC (default \= 4 decimal places). Thus, to automatically use the current system settings, simply leave out *mode* and *precision*. **Tell me about...** [(atof string)](IDR_LISP_B131.md) [(atoi string)](%28atoi%20string%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/%28rtos%20number%20-mode%20-precision-%29.md)