Handle big numbers better in sprintf

Using «sprintf(%d, $float)» has the potential for an integer overflow. Ick.

It is being converted to a string anyway, so cut the float at the «.», and keep the rest.