Home
last modified time | relevance | path

Searched refs:decimals (Results 1 – 24 of 24) sorted by relevance

/PHP-7.3/ext/mysqlnd/
H A Dmysql_float_to_double.h39 static inline double mysql_float_to_double(float fp4, int decimals) { in mysql_float_to_double() argument
42 if (decimals < 0) { in mysql_float_to_double()
45 snprintf(num_buf, MAX_CHAR_BUF_LEN, "%.*F", decimals, fp4); in mysql_float_to_double()
H A Dmysqlnd_ps_codec.c189 dval = mysql_float_to_double(fval, (field->decimals >= NOT_FIXED_DEC) ? -1 : (int)field->decimals); in ps_fetch_float()
245 if (field->decimals > 0 && field->decimals < 7) { in ps_fetch_time()
254 field->decimals, in ps_fetch_time()
255 (uint32_t) (t.second_part / pow(10, 6 - field->decimals)) in ps_fetch_time()
340 if (field->decimals > 0 && field->decimals < 7) { in ps_fetch_datetime()
351 field->decimals, in ps_fetch_datetime()
352 (uint32_t) (t.second_part / pow(10, 6 - field->decimals)) in ps_fetch_datetime()
H A Dmysqlnd_structs.h103 unsigned int decimals; /* Number of decimals in field */ member
H A Dmysqlnd_wireprotocol.c1249 meta->decimals = uint1korr(p); in php_mysqlnd_rset_field_read()
/PHP-7.3/ext/mysqli/tests/
H A D047.phpt88 ["decimals"]=>
117 ["decimals"]=>
148 ["decimals"]=>
176 ["decimals"]=>
206 ["decimals"]=>
234 ["decimals"]=>
H A Dmysqli_stmt_get_result_metadata_fetch_field.phpt94 ["decimals"]=>
122 ["decimals"]=>
150 ["decimals"]=>
178 ["decimals"]=>
H A Dmysqli_field_seek.phpt154 ["decimals"]=>
183 ["decimals"]=>
212 ["decimals"]=>
249 ["decimals"]=>
H A Dmysqli_stmt_get_result_metadata.phpt136 if ($info->decimals !== $fields['meta'][$k]->decimals)
137 printf("[025 - %d] Expecting decimals %s/%s got %s/%s\n",
138 …$k, getdecimals($info->decimals), $info->decimals, getdecimals($fields['meta'][$k]->decimals), $fi…
H A Dmysqli_fetch_field.phpt115 ["decimals"]=>
143 ["decimals"]=>
178 ["decimals"]=>
H A Dmysqli_fetch_fields.phpt94 ["decimals"]=>
122 ["decimals"]=>
H A Dmysqli_fetch_field_oo.phpt98 ["decimals"]=>
126 ["decimals"]=>
H A Dmysqli_fetch_field_direct.phpt75 ["decimals"]=>
H A Dmysqli_field_tell.phpt92 ["decimals"]=>
H A Dmysqli_fetch_field_direct_oo.phpt84 ["decimals"]=>
H A Dbug_mysql_49406.phpt77 printf("Decimals : %d\n", $field->decimals);
H A Dmysqli_stmt_result_metadata.phpt128 ["decimals"]=>
H A Dmysqli_stmt_result_metadata_sqltests.phpt207 $field0->decimals = 0;
/PHP-7.3/ext/standard/tests/strings/
H A Dnumber_format_error.phpt5 /* Prototype : string number_format ( float $number [, int $decimals ] )
6 …* string number_format ( float $number , int $decimals , string $dec_point , string …
H A Dnumber_format_basic.phpt5 /* Prototype : string number_format ( float $number [, int $decimals ] )
6 …* string number_format ( float $number , int $decimals , string $dec_point , string …
/PHP-7.3/ext/com_dotnet/
H A Dcom_variant.c854 zend_long decimals = 0; in PHP_FUNCTION() local
860 ZEND_NUM_ARGS(), "Ol", &zleft, php_com_variant_class_entry, &decimals)) { in PHP_FUNCTION()
864 "z!l", &zleft, &decimals)) { in PHP_FUNCTION()
871 if (SUCCEEDED(VarRound(vleft, (int)decimals, &vres))) { in PHP_FUNCTION()
H A Dcom_extension.c76 ZEND_ARG_INFO(0, decimals)
/PHP-7.3/ext/mysqli/
H A Dmysqli_api.c1021 (stmt->stmt->fields[i].decimals >= NOT_FIXED_DEC) ? -1 :
1022 stmt->stmt->fields[i].decimals);
1178 add_property_long(value, "decimals", field->decimals);
/PHP-7.3/ext/pdo_mysql/
H A Dmysql_statement.c711 cols[i].precision = S->fields[i].decimals;
/PHP-7.3/
H A DUPGRADING135 TIME/TIMESTAMP columns with decimals specifier (e.g. TIMESTAMP(6) when using
141 TIME/TIMESTAMP columns with decimals specifier (e.g. TIMESTAMP(6) when using

Completed in 58 milliseconds