Searched refs:precision (Results 1 - 25 of 33) sorted by relevance

12

/PHP_TRUNK/ext/xmlrpc/libxmlrpc/
H A Dxml_to_xmlrpc.c233 ap_php_snprintf(buf, BUF_SIZE, "%.*G", (int) EG(precision), XMLRPC_GetValueDouble(node));
/PHP_TRUNK/ext/interbase/
H A Dibase_query.c1935 unsigned short precision = 0; local
1940 precision = 4;
1943 precision = 9;
1946 precision = 18;
1949 len = slprintf(buf, 16, "NUMERIC(%d,%d)", precision, -var->sqlscale);
/PHP_TRUNK/ext/oci8/
H A Dphp_oci8_int.h283 sb2 precision; /* column precision */ member in struct:__anon146
/PHP_TRUNK/ext/pdo/
H A Dphp_pdo_driver.h376 * precision => precision of the column
532 zend_ulong precision; member in struct:pdo_column_data
/PHP_TRUNK/ext/pdo_firebird/
H A Dfirebird_statement.c198 col->precision = -var->sqlscale;
/PHP_TRUNK/ext/pdo_mysql/
H A Dmysql_statement.c709 cols[i].precision = S->fields[i].decimals;
/PHP_TRUNK/ext/pdo_oci/
H A Doci_statement.c529 /* precision ? */
537 col->precision = scale;
/PHP_TRUNK/ext/pdo_odbc/
H A Dodbc_stmt.c288 SQLULEN precision = 0; local
323 rc = SQLDescribeParam(S->stmt, (SQLUSMALLINT) param->paramno+1, &sqltype, &precision, &scale, &nullable);
330 precision = 4000;
335 precision = param->max_value_len;
367 P->len = param->max_value_len > 0 ? param->max_value_len : precision;
381 P->paramtype, ctype, sqltype, precision, scale,
/PHP_TRUNK/ext/pdo_pgsql/
H A Dpgsql_statement.c454 cols[colno].precision = PQfmod(S->result, colno);
/PHP_TRUNK/ext/pdo_sqlite/
H A Dsqlite_statement.c246 stmt->columns[colno].precision = 0;
/PHP_TRUNK/ext/sybase_ct/
H A Dphp_sybase_ct.c1182 if ((length - 1) <= EG(precision)) { \
1375 result->datafmt[i].maxlength = result->datafmt[i].precision + 3;
/PHP_TRUNK/main/
H A Dspprintf.c173 * This macro does zero padding so that the precision
178 #define FIX_PRECISION(adjust, precision, s, s_len) do { \
180 while (s_len < precision) { \
206 int precision = 0; local
251 * Try to avoid checking for flags, width or precision
290 * Check if a precision was specified
296 STR_TO_DEC(fmt, precision);
298 precision = va_arg(ap, int);
300 if (precision < 0)
301 precision
[all...]
H A Dsnprintf.c373 boolean_e add_dp, int precision, char dec_point, bool_int * is_negative, char *buf, size_t *len)
379 if (precision >= NDIG - 1) {
380 precision = NDIG - 2;
384 p_orig = p = php_fcvt(num, precision, &decimal_point, is_negative);
386 p_orig = p = php_ecvt(num, precision + 1, &decimal_point, is_negative);
401 if (num != 0 || precision > 0) {
403 if (precision > 0) {
421 if (precision > 0 || add_dp) {
427 if (precision > 0 || add_dp) {
547 * This macro does zero padding so that the precision
372 php_conv_fp(register char format, register double num, boolean_e add_dp, int precision, char dec_point, bool_int * is_negative, char *buf, size_t *len) argument
595 int precision = 0; local
[all...]
H A Dsnprintf.h90 boolean_e add_dp, int precision, char dec_point, bool_int * is_negative, char *buf, size_t *len);
162 /* The maximum precision that's allowed for float conversion. Does not include
/PHP_TRUNK/ext/odbc/
H A Dphp_odbc.c1246 SQLULEN precision; local
1304 rc = SQLDescribeParam(result->stmt, (SQLUSMALLINT)i, &sqltype, &precision, &scale, &nullable);
1366 ctype, sqltype, precision, scale,
1371 precision = params[i-1].vallen;
1378 ctype, sqltype, precision, scale,
2852 Get the length (precision) of a column */
/PHP_TRUNK/ext/json/
H A Djson.c405 int l = spprintf(&tmp, 0, "%.*k", (int) EG(precision), d);
629 len = spprintf(&d, 0, "%.*k", (int) EG(precision), dbl);
/PHP_TRUNK/Zend/
H A Dzend_globals.h180 zend_long precision; member in struct:_zend_executor_globals
H A Dzend_operators.c570 str = zend_strpprintf(0, "%.*G", (int) EG(precision), dval);
843 return zend_strpprintf(0, "%.*G", (int) EG(precision), Z_DVAL_P(op));
2560 str = zend_strpprintf(0, "%.*G", (int) EG(precision), (double)Z_DVAL_P(op));
/PHP_TRUNK/ext/standard/
H A Dvar.c126 php_printf("%sfloat(%.*G)\n", COMMON, (int) EG(precision), Z_DVAL_P(struc));
294 php_printf("%sdouble(%.*G)\n", COMMON, (int) EG(precision), Z_DVAL_P(struc));
H A Dformatted_print.c204 size_t alignment, int precision,
220 precision = FLOAT_PRECISION;
221 } else if (precision > MAX_FLOAT_PRECISION) {
222 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Requested precision of %d digits was truncated to PHP maximum of %d digits", precision, MAX_FLOAT_PRECISION);
223 precision = MAX_FLOAT_PRECISION;
248 s = php_conv_fp((fmt == 'f')?'F':fmt, number, 0, precision,
264 if (precision == 0)
265 precision = 1;
272 s = php_gcvt(number, precision, LCONV_DECIMAL_POIN
201 php_sprintf_appenddouble(zend_string **buffer, size_t *pos, double number, size_t width, char padding, size_t alignment, int precision, int adjust, char fmt, int always_sign TSRMLS_DC) argument
375 int alignment, currarg, adjusting, argnum, width, precision; local
[all...]
H A Dhttp.c198 ekey_len = spprintf(&ekey, 0, "%.*G", (int) EG(precision), Z_DVAL_P(zdata));
H A Dmath.c152 /* If the decimal precision guaranteed by FP arithmetic is higher than
154 is returned, pre-round the result to the precision */
176 /* This value is beyond our precision, so rounding it is pointless */
356 /* {{{ proto float round(float number [, int precision [, int mode]])
357 Returns the number rounded to specified precision */
362 zend_long precision = 0; local
366 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|ll", &value, &precision, &mode) == FAILURE) {
371 places = (int) precision;
/PHP_TRUNK/ext/pdo_dblib/
H A Ddblib_stmt.c300 add_assoc_long(return_value, "precision", (int) dbtypeinfo->precision );
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_out.c86 * This macro does zero padding so that the precision
91 #define FIX_PRECISION( adjust, precision, s, s_len ) \
93 while ( s_len < precision ) \
144 int precision = 0; local
192 * Try to avoid checking for flags, width or precision
231 * Check if a precision was specified
237 STR_TO_DEC(fmt, precision);
239 precision = va_arg(ap, int);
241 if (precision < 0)
242 precision
[all...]
H A Dphpdbg_utils.c614 phpdbg_xml("<float refstatus=\"%s\" value=\"%.*G\" />", COMMON, (int) EG(precision), Z_DVAL_P(zv));

Completed in 43 milliseconds

12