It is, probably, a sign that something has gone a bit wrong when you start using floating point calculations on a little microcontroller for basic arithmetic.
For instance, if the speed of sound in water is 1500 m/s, then a signal will travel 1500 m in a second, or 1500 mm in a millisecond, or 1.5 mm in a microsecond. So you can just measure the time interval in microseconds, multiply by 1.5 (trivial in binary arithmetic), and you have the distance in mm.