WC_Tax::format_tax_rate()
Format the rate.
Method of the class: WC_Tax{}
No Hooks.
Return
String
.
Usage
$result = WC_Tax::format_tax_rate( $rate );
- $rate(float) (required)
- Value to format.
WC_Tax::format_tax_rate() WC Tax::format tax rate code WC 9.4.2
private static function format_tax_rate( $rate ) { return number_format( (float) $rate, 4, '.', '' ); }