1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 01:32:22 +01:00
This commit is contained in:
Zeev Suraski
1999-07-31 16:20:06 +00:00
parent 338405d343
commit eb3d12c6dd

View File

@@ -25,6 +25,7 @@
+----------------------------------------------------------------------+
| Authors: Jim Winstead (jimw@php.net) |
| Stig Sæther Bakken <ssb@guardian.no> |
| Zeev Suraski <zeev@zend.com> |
+----------------------------------------------------------------------+
*/
@@ -603,6 +604,10 @@ char *_php3_number_format(double d,int dec,char dec_point,char thousand_sep)
tmplen=_php3_sprintf(tmpbuf,"%.*f",dec,d);
if (!isdigit(tmpbuf[0])) {
return tmpbuf;
}
for (t=tmpbuf; *t; t++) {
if (*t=='.') {
*t = dec_point;