# (angtof string \[mode\]) [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="124"></a> ## (angtof string \[mode\]) --- Change this angle to a real number. --- This function converts a *string* that contains an angle to a [real number](../../../Source%20Issues.md#issue-a291f832deb666d9) in radian format. The optional *mode* specifies the format of the "number" in the *string*: | Mode value | String format | | --- | --- | | 0 | Decimal degrees | | 1 | Degrees-minutes-seconds | | 2 | Grad | | 3 | Radian | | 4 | Surveyor's units | **NOTE** This command fails if the text of the *string* is not recognizable as an angle measurement. ### Examples | Code | Returns | | --- | --- | | (**angtof** "90") | 1.57080 | | (**angtof** "90" 0\) | 1.57080 | | (**angtof** "90d30'10\\"") | 1.57957 | ### NOTES - The backslash denotes that there is a quote within the string. When LISP sees the second quote, it knows this is the end of the string. - The **angtof** function is the opposite of the [angtos](%28angtof%20string%20-mode-%29.md) function. **Tell me about...** [(angle point1 point2)](%28angle%20point1%20point2%29.md) [(getangle \[point\] \[prompt\])](%28getangle%20-point-%20-prompt-%29.md) [(polar point angle distance)](%28polar%20point%20angle%20distance%29.md) [(rtos number \[mode \[precision\]\])](%28rtos%20number%20-mode%20-precision-%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/%28angtof%20string%20-mode-%29.md)