use io_lib:format() instead of float_to_list()
because the latter is too new.
Now it is somewhat uglier, but should work on older releases of
Erlang/OTP as well.