POSX and NEGX

Constant: The maximum possible positive and negative integers.

POSXMaximum positive integer:2147483647($7FFFFFFF)
NEGXMaximum negative integer:-2147483648($80000000)

POSX and NEGX are typically used for comparison purposes or as a flag for a specific event:

  if Z > NEGX
    <code to execute if Z hasn't reached smallest negative>

—or—

PUB FindListItem(Item) : Index
  Index := NEGX 'Default to "not found" response
  <code to find Item in list>
  if <item found>
    Index := <items index>

Unless otherwise noted, content on this site is licensed under the
Creative Commons Attribution-ShareAlike 4.0 International License.