

@classdef.method('to_i')
def method_to_i(self, space):
    if (math.isnan(self.floatvalue) or math.isinf(self.floatvalue)):
        raise space.error(space.w_FloatDomainError, space.str_w(space.send(self, 'to_s')))
    return self.float_to_w_int(space, self.floatvalue)

dataset/ETHPy150Open topazproject/topaz/topaz/objects/floatobject.py W_FloatObject.method_to_i/original