News

x = 123 y = float (x) # y = 123.0 z = 34.89 w = int (z) # w = 34 p = 75 q = long (p) # q = 75L Note that when you convert to int, the function truncates instead of rounding. Math Library . There are ...