lib: attempt to reduce floating error