Don't try to use a float in a %d formatted string.
This fixes #6