Comma as a decimal separator in sprintf in en_CA locale

[亡魂溺海] 提交于 2019-12-11 03:25:42

问题


Is it possible to use the comma as a decimal separator in sprintf in en_CA locale?


回答1:


sprintf is locale aware and will always use the current locale settings but you can use number_format for this.



来源:https://stackoverflow.com/questions/12696163/comma-as-a-decimal-separator-in-sprintf-in-en-ca-locale

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!