public function formatTaxRate($rate)
    {
        return $rate != intval($rate) ? self::formatAsDecimal($rate, 1) : self::formatAsDecimal($rate, 0);
    }
public function formatTaxRate($rate)
    {
        return $rate != intval($rate) ? self::formatAsDecimal($rate, 1) : self::formatAsDecimal($rate, 0);
    }
public function formatTaxRate ( $ rate ) { return $ rate != intval ( $ rate ) ? self :: formatAsDecimal ( $ rate , 1 ) : self :: formatAsDecimal ( $ rate , 0 ) ; }
shows decimals only if necessary
@param $rate
shows decimals only if necessary