Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

WC_Tax::format_tax_rate( float $rate )

Format the rate.


Description Description


Parameters Parameters

$rate

(Required) Value to format.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/class-wc-tax.php

	private static function format_tax_rate( $rate ) {
		return number_format( (float) $rate, 4, '.', '' );
	}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.