Replace round() with sprintf()

Fixes problem with rounding floating-point numbers where round($value,
2) would sometimes output values like "3.1200000001"