WordPress at a glance
function is not described

wc_float_to_string() WC 1.0

Convert a float to a string without locale formatting which PHP adds when changing floats to strings.

No Hooks.

Return

String. Nothing.

Usage

wc_float_to_string( $float );
$float(float) (required)
Float value to format.

Code of wc_float_to_string() WC 5.2.2

<?php
function wc_float_to_string( $float ) {
	if ( ! is_float( $float ) ) {
		return $float;
	}

	$locale = localeconv();
	$string = strval( $float );
	$string = str_replace( $locale['decimal_point'], '.', $string );

	return $string;
}