lib: add Float::is_approx to compare floats

Signed-off-by: Jean Privat <jean@pryen.org>