Special XNS Numbers: NaN, Infinity, and -Infinity

XNS, in keeping a close compatibility with JavaScript, has three special XNS number types representing Number.NaN, Number.POSITIVE_INFINITY, and Number.NEGATIVE_INFINITY. These constructors return objects designed specifically to act as their JavaScript counterparts. Although you theoretically could use the original values themselves, building objects from these allows for better compatibility with XNS in my opinion.

XNS_NaN()

function XNS_NaN() {
   }

XNS_Infinity()

function XNS_Infinity() {
   }

XNS_NEG_Infinity()

function XNS_NEG_Infinity() {
   }

Back to the Main Page.

docs/Specials.html created May 23, 2002