I wouldn't ever say that using floats compared to, say, precision decimals in any language is leaking an implementation detail.
As a user of a library/API I need to know if I can rely on it being precise or not.
As a user of a library/API I need to know if I can rely on it being precise or not.