distance: int -> double