Jump to content
OMRON Forums

Meaning of 0/0


jackvoxel8.com
 Share

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

Guest
This topic is now closed to further replies.
 Share


×
×
  • Create New...