From Caucho's bugtracker :
The php method sprintf with usage of formatting non locale - aware should be treated without Locale consideration.
F - the argument is treated as a float, and presented as a floating-point number (non-locale aware). Available since PHP 4.3.10 and PHP 5.0.3.
From Caucho's bugtracker : The php method sprintf with usage of formatting non locale - aware should be treated without Locale consideration. F - the argument is treated as a float, and presented as a floating-point number (non-locale aware). Available since PHP 4.3.10 and PHP 5.0.3.
Locale::setDefault(Locale::ITALIAN); echo sprintf('%.1F', 1.0)
should produced 1.0 instead of 1,0 result.