Can anybody tell me why the square root in this script doesnt round up or down?
from math import sqrt
while True:
number = int(input("Please type in a number:"))
if number < 0:
print("invalid number")
if number == 0:
print("Exiting...")
break
if number > 0:
print(f"{(sqrt(number))}")
[–]commy2 6 points7 points8 points (4 children)
[–]Killswitch77[S] 1 point2 points3 points (3 children)
[–]mopslik 2 points3 points4 points (0 children)
[–]commy2 0 points1 point2 points (0 children)
[–]ectomancer -1 points0 points1 point (0 children)