

def method_mod_float_impl(self, space, other):
    if (other == 0.0):
        raise space.error(space.w_ZeroDivisionError, 'divided by 0')
    elif (self.floatvalue == (- 0.0)):
        return space.newfloat((- 0.0))
    elif (math.isinf(other) and (other < 0.0)):
        return space.newfloat(other)
    elif (math.isnan(self.floatvalue) or math.isinf(self.floatvalue)):
        return space.newfloat(NAN)
    return space.newfloat(math.fmod(self.floatvalue, other))

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