Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

Simple Angle expression

Status
Not open for further replies.
Replies continue below

Recommended for you

I think what you are seeing is the result of trying to compare 2 floating point numbers. Due to the way computers store the numbers, it is difficult to test 2 real numbers (as opposed to integers) for equality. I've rewritten your equation below to use greater than and less than tests rather than equality. I think the results agree with your intentions.

NX_expression_2020-06-10_tffqec.png


www.nxjournaling.com
 
Status
Not open for further replies.
Back
Top