# llRot2Angle

*LSL function*

```lsl
float float llRot2Angle(rotation q);
```

- `rotation q`: Rotation to evaluate.

- Returns: `float`
- Energy: 10

Use in conjunction with [llRot2Axis](/functions/llRot2Axis/).

To undo use [llAxisAngle2Rot](/functions/llAxisAngle2Rot/).

Returns a [float](https://wiki.secondlife.com/wiki/float) that is the rotation angle represented by **rot**

```lsl title="How to use" frame="terminal"
float result = llRot2Angle(ZERO_ROTATION);
```

## Caveats

This always returns a positive angle &lt;= [PI](/constants/PI/) radians, that is, it is the unsigned minimum angle. A rotation of 3/2 [PI](/constants/PI/) radians (270 degrees) will return an angle of [PI](/constants/PI/) / 2 radians, not -PI / 2.

## See also

### Functions

- [llAxisAngle2Rot](/functions/llAxisAngle2Rot/)
- [llRot2Axis](/functions/llRot2Axis/)
- [llRot2Up](/functions/llRot2Up/)
- [llRot2Fwd](/functions/llRot2Fwd/)
- [llRot2Left](/functions/llRot2Left/)
- [llAngleBetween](/functions/llAngleBetween/) — Similar functionality.

---

*Source: [LlRot2Angle](https://wiki.secondlife.com/wiki/LlRot2Angle) on the Second Life Wiki. Content from the Second Life Wiki article LlRot2Angle (revision 1210533, 2022-03-22), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llRot2Angle/
