Index: formatter.php =================================================================== --- formatter.php (revision 14590) +++ formatter.php (working copy) @@ -138,6 +138,11 @@ if (isset($format) && $format) { $value = sprintf($format, $value); + + if ( isset($options['cut_zeros']) && $options['cut_zeros'] ) { + // converts 5.00 to 5, but doesn't change 5.340 or 5.34 + $value = preg_replace('/\.[0]+$/', '', $value); + } } if (preg_match('#int|integer|double|float|real|numeric#', $options['type'])) {