code: def is_not_nan(self):
          
          self._validate_number()
          self._validate_real()
          if math.isnan(self.val):
              self._err('Expected not <NaN>, but was.')
          return self
docs: Asserts that val is real number and not NaN (not a number).