Helper function to compare the value of a PLIST_REAL node against a given value.
- Note
- WARNING: Comparing floating point values can give inaccurate results because of the nature of floating point values on computer systems. While this function is designed to be as accurate as possible, please don't rely on it too much.
- Parameters
-
| realnode | node of type PLIST_REAL |
| cmpval | value to compare against |
- Returns
- 0 if the node's value and cmpval are (almost) equal, 1 if the node's value is greater than cmpval, or -1 if the node's value is less than cmpval.