Comma as a decimal separator in sprintf in en_CA locale
问题 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