Universal Robots Forum

Urmath cos/sin rounding error

Software version: 5.4.0.76181
Robot generation: URSim e-Series

Steps to reproduce:
textmsg(sin(d2r(90)))
textmsg(cos(d2r(90)))
Expected behavior:
Console:
1
0
Actual behavior:
1
6.12323e-17

1 Like

How is this bug causing issues in your application?

i was checking if a vector was orthogonal to another vector/plane and i wondered why if cos(90) always returned true