I want to convert 1.368090543211 into 1.36 or 1.3. please tell me how can I do it. thank you. I tried this, and the answer is also what I want. But I want a way to shorten a random decimal value.
KM_TO_MILES
miles = 5.64
def KM_TO_MILES(miles):
KM = ("{:.2f}" .format(miles * 1.6))
print(KM , "KM")