wc_format_localized_decimal( string $value )
Format a decimal with PHP Locale settings.
Description Description
Parameters Parameters
- $value
-
(Required) Decimal to localize.
Return Return
(string)
Source Source
File: includes/wc-formatting-functions.php
function wc_format_localized_decimal( $value ) { $locale = localeconv(); return apply_filters( 'woocommerce_format_localized_decimal', str_replace( '.', $locale['decimal_point'], strval( $value ) ), $value ); }