So my code looks like this:
from mDev import * mdev = mDEV() while True: distance=mdev.getSonic() x="%.2f" %distance print(x) time.sleep