Use round instead of sprintf.