'.', // PHP's number formatting currently uses only the first byte from 'decimal_point'. // See upstream bug https://bugs.php.net/bug.php?id=78113 $localeData['decimal_point'][0] => '.', ] ); } return $value; } public function stringifyValue( $name, $value, array $settings, array $options ) { // Ensure sufficient precision for round-tripping. PHP_FLOAT_DIG was added in PHP 7.2. $digits = defined( 'PHP_FLOAT_DIG' ) ? PHP_FLOAT_DIG : 15; return $this->fixLocaleWeirdness( sprintf( "%.{$digits}g", $value ) ); } }