Jump to content
OMRON Forums

Meaning of 0/0


Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Well your variable should be set to nan (not a number). Conditional checks should make sense, nan is never going to evaluate equal a number. Feel free to test any condition you're worried about.


There is also a isnan() function. See page 1395 of the October 2017 SRM for more details, but it just returns 0 for real numbers and 1 for nan.


Almost forgot to add, put this in the terminal to see that 0/0 evaluates to nan:

p0=0/0 p0

Link to comment
Share on other sites

This topic is now closed to further replies.

  • Create New...