tests: Make printing of floats hopefully more portable.