Home
last modified time | relevance | path

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

/PHP-8.0/ext/mysqlnd/
H A Dmysql_float_to_double.h37 static inline double mysql_float_to_double(float fp4, int decimals) { in mysql_float_to_double() argument
40 if (decimals < 0) { in mysql_float_to_double()
43 snprintf(num_buf, MAX_CHAR_BUF_LEN, "%.*F", decimals, fp4); in mysql_float_to_double()
H A Dmysqlnd_ps_codec.c187 dval = mysql_float_to_double(fval, (field->decimals >= NOT_FIXED_DEC) ? -1 : (int)field->decimals); in ps_fetch_float()
243 if (field->decimals > 0 && field->decimals < 7) { in ps_fetch_time()
252 field->decimals, in ps_fetch_time()
253 (uint32_t) (t.second_part / pow(10, 6 - field->decimals)) in ps_fetch_time()
338 if (field->decimals > 0 && field->decimals < 7) { in ps_fetch_datetime()
349 field->decimals, in ps_fetch_datetime()
350 (uint32_t) (t.second_part / pow(10, 6 - field->decimals)) in ps_fetch_datetime()
H A Dmysqlnd_structs.h101 unsigned int decimals; /* Number of decimals in field */ member
H A Dmysqlnd_wireprotocol.c1256 meta->decimals = uint1korr(p); in php_mysqlnd_rset_field_read()
/PHP-8.0/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.phpt93 ["decimals"]=>
121 ["decimals"]=>
149 ["decimals"]=>
177 ["decimals"]=>
H A Dmysqli_field_seek.phpt151 ["decimals"]=>
180 ["decimals"]=>
209 ["decimals"]=>
241 ["decimals"]=>
H A Dmysqli_stmt_get_result_metadata.phpt135 if ($info->decimals !== $fields['meta'][$k]->decimals)
136 printf("[025 - %d] Expecting decimals %s/%s got %s/%s\n",
137 …$k, getdecimals($info->decimals), $info->decimals, getdecimals($fields['meta'][$k]->decimals), $fi…
H A Dmysqli_fetch_field.phpt109 ["decimals"]=>
137 ["decimals"]=>
171 ["decimals"]=>
H A Dmysqli_fetch_fields.phpt88 ["decimals"]=>
116 ["decimals"]=>
H A Dmysqli_fetch_field_oo.phpt98 ["decimals"]=>
126 ["decimals"]=>
H A Dmysqli_fetch_field_direct.phpt73 ["decimals"]=>
H A Dmysqli_field_tell.phpt86 ["decimals"]=>
H A Dmysqli_fetch_field_direct_oo.phpt86 ["decimals"]=>
H A Dmysqli_stmt_result_metadata.phpt118 ["decimals"]=>
H A Dbug_mysql_49406.phpt77 printf("Decimals : %d\n", $field->decimals);
H A Dmysqli_stmt_result_metadata_sqltests.phpt206 $field0->decimals = 0;
/PHP-8.0/ext/com_dotnet/
H A Dcom_extension.stub.php43 function variant_round(mixed $value, int $decimals): ?variant {} argument
H A Dcom_variant.c831 zend_long decimals = 0; in PHP_FUNCTION() local
837 ZEND_NUM_ARGS(), "Ol", &zleft, php_com_variant_class_entry, &decimals)) { in PHP_FUNCTION()
841 "z!l", &zleft, &decimals)) { in PHP_FUNCTION()
848 if (SUCCEEDED(VarRound(vleft, (int)decimals, &vres))) { in PHP_FUNCTION()
H A Dcom_extension_arginfo.h52 ZEND_ARG_TYPE_INFO(0, decimals, IS_LONG, 0)
/PHP-8.0/ext/pdo_mysql/
H A Dmysql_statement.c643 cols[i].precision = S->fields[i].decimals; in pdo_mysql_stmt_describe()
/PHP-8.0/ext/mysqli/
H A Dmysqli_api.c968 (stmt->stmt->fields[i].decimals >= NOT_FIXED_DEC) ? -1 :
969 stmt->stmt->fields[i].decimals);
1116 add_property_long(value, "decimals", field->decimals);
/PHP-8.0/ext/standard/
H A Dbasic_functions.stub.php1109 function number_format(float $num, int $decimals = 0, ?string $decimal_separator = ".", ?string $th… argument
H A Dbasic_functions_arginfo.h1711 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, decimals, IS_LONG, 0, "0")

Completed in 98 milliseconds