都是整数为什么输出的是浮点数
# -*- coding: utf-8 -*-
import math
def quadratic_equation(a, b, c):
t = math.sqrt(b * b - 4 * a * c)
if t<0:
return u'无解'
else:
return (-b + t) / (2 * a),( -b - t )/ (2 * a)
print quadratic_equation(2, 3, 0)
print quadratic_equation(1, -6, 5)
都是整数为什么输出的是浮点数