def __call__(self, state, scope, pos, paramTypes, x): out = None if math.isinf(x) or math.isnan(x): out = x else: out = math.floor(x + 0.5) return int( checkForOverflow(paramTypes[-1], out, self.errcodeBase + 0, self.errcodeBase + 1, self.name, pos))
def __call__(self, state, scope, pos, paramTypes, x): return checkForOverflow(paramTypes[0], abs(x), self.errcodeBase + 0, self.errcodeBase + 1, self.name, pos)
def __call__(self, state, scope, pos, paramTypes, x): return int(checkForOverflow(paramTypes[-1], math.floor(x + 0.5), self.errcodeBase + 0, self.errcodeBase + 1, self.name, pos))