mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Move php_gcvt to zend_gcvt
Also move PHP_DOUBLE_MAX_LENGTH to ZEND_DOUBLE_MAX_LENGTH.
This commit is contained in:
parent
7c9ac479eb
commit
d28f6e694d
11 changed files with 126 additions and 123 deletions
|
@ -38,7 +38,7 @@ static inline double mysql_float_to_double(float fp4, int decimals) {
|
|||
char num_buf[MAX_CHAR_BUF_LEN]; /* Over allocated */
|
||||
|
||||
if (decimals < 0) {
|
||||
php_gcvt(fp4, FLT_DIG, '.', 'e', num_buf);
|
||||
zend_gcvt(fp4, FLT_DIG, '.', 'e', num_buf);
|
||||
} else {
|
||||
snprintf(num_buf, MAX_CHAR_BUF_LEN, "%.*F", decimals, fp4);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue