Quote Originally Posted by richard View Post
a better strategy would be to examine the magnitude of the time and switch to hours at a suitable size and ditto for distance switch to kilometres for larger distances. you may be able to avoid longs
that way
+1000

and moreover if only two decimals are needed for the result ...

might be the " Arduino syndrom " ( extensive use of floats ) ???

Alain