x = 3.1415926
y = -12.9999
a="{:.0f}".format(x)
b="{:.0f}".format(y)
print(" Roundoff of ",x," = ",a)
print(" Roundoff of ",y," = ",b)
y = -12.9999
a="{:.0f}".format(x)
b="{:.0f}".format(y)
print(" Roundoff of ",x," = ",a)
print(" Roundoff of ",y," = ",b)
No comments:
Post a Comment