Home
last modified time | relevance | path

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

/php-src/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.c225 dval = mysql_float_to_double(fval, (field->decimals >= NOT_FIXED_DEC) ? -1 : (int)field->decimals); in ps_fetch_float()
290 if (field->decimals > 0 && field->decimals < 7) { in ps_fetch_time()
292 (t.neg ? "-" : ""), t.hour, t.minute, t.second, field->decimals, in ps_fetch_time()
293 (uint32_t) (t.second_part / pow(10, 6 - field->decimals)))); in ps_fetch_time()
378 if (field->decimals > 0 && field->decimals < 7) { in ps_fetch_datetime()
380 t.year, t.month, t.day, t.hour, t.minute, t.second, field->decimals, in ps_fetch_datetime()
381 (uint32_t) (t.second_part / pow(10, 6 - field->decimals)))); in ps_fetch_datetime()
H A Dmysqlnd_structs.h97 unsigned int decimals; /* Number of decimals in field */ member
H A Dmysqlnd_wireprotocol.c1271 meta->decimals = uint1korr(p); in php_mysqlnd_rset_field_read()
/php-src/ext/mysqli/tests/
H A D047.phpt89 ["decimals"]=>
118 ["decimals"]=>
149 ["decimals"]=>
177 ["decimals"]=>
207 ["decimals"]=>
235 ["decimals"]=>
H A Dmysqli_stmt_get_result_metadata_fetch_field.phpt91 ["decimals"]=>
119 ["decimals"]=>
147 ["decimals"]=>
175 ["decimals"]=>
H A Dmysqli_field_seek.phpt150 ["decimals"]=>
179 ["decimals"]=>
208 ["decimals"]=>
240 ["decimals"]=>
H A Dmysqli_stmt_get_result_metadata.phpt133 if ($info->decimals !== $fields['meta'][$k]->decimals)
134 printf("[025 - %d] Expecting decimals %s/%s got %s/%s\n",
135 …$k, getdecimals($info->decimals), $info->decimals, getdecimals($fields['meta'][$k]->decimals), $fi…
H A Dmysqli_fetch_field.phpt104 ["decimals"]=>
132 ["decimals"]=>
166 ["decimals"]=>
H A Dmysqli_fetch_fields.phpt82 ["decimals"]=>
110 ["decimals"]=>
H A Dmysqli_fetch_field_oo.phpt82 ["decimals"]=>
110 ["decimals"]=>
H A Dmysqli_fetch_field_direct.phpt72 ["decimals"]=>
H A Dmysqli_fetch_field_direct_oo.phpt74 ["decimals"]=>
H A Dmysqli_field_tell.phpt85 ["decimals"]=>
H A Dmysqli_stmt_result_metadata.phpt115 ["decimals"]=>
H A Dbug_mysql_49406.phpt77 printf("Decimals : %d\n", $field->decimals);
H A Dfake_server.inc228 $qr2->decimals = "000000";
/php-src/ext/com_dotnet/
H A Dcom_extension.stub.php329 function variant_round(mixed $value, int $decimals): ?variant {} argument
H A Dcom_variant.c842 zend_long decimals = 0; in PHP_FUNCTION() local
848 ZEND_NUM_ARGS(), "Ol", &zleft, php_com_variant_class_entry, &decimals)) { in PHP_FUNCTION()
852 "z!l", &zleft, &decimals)) { in PHP_FUNCTION()
859 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-src/ext/standard/tests/math/
H A Dnumber_format_decimals.phpt32 $decimals = array(0, 1, 2, 3, 4, 5, -1, -2, -3, -4, -5, PHP_INT_MIN);
38 foreach ($decimals as $decimal) {
/php-src/ext/pdo_mysql/
H A Dmysql_statement.c661 cols[i].precision = S->fields[i].decimals; in pdo_mysql_stmt_describe()
/php-src/ext/mysqli/
H A Dmysqli_api.c658 add_property_long(value, "decimals", field->decimals); in php_add_field_properties()
/php-src/ext/standard/
H A Dbasic_functions.stub.php3264 function number_format(float $num, int $decimals = 0, ?string $decimal_separator = ".", ?string $th…
H A Dbasic_functions_arginfo.h1715 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, decimals, IS_LONG, 0, "0")

Completed in 128 milliseconds