Home
last modified time | relevance | path

Searched refs:dNumber (Results 1 – 4 of 4) sorted by relevance

/external/fastrpc/src/
Dstd_dtoa.c131 double fp_round( double dNumber, int nPrecision ) in fp_round() argument
139 double dResult = dNumber; in fp_round()
142 if( dNumber < 0 ) in fp_round()
144 dResult = dNumber - dRoundingFactor; in fp_round()
148 dResult = dNumber + dRoundingFactor; in fp_round()
154 int fp_log_10( double dNumber ) in fp_log_10() argument
161 if( dNumber < 0 ) in fp_log_10()
163 dNumber = -dNumber; in fp_log_10()
166 return (int)( floor( log10( dNumber ) ) ); in fp_log_10()
169 int fp_check_special_cases( double dNumber, FloatingPointType* pNumberType ) in fp_check_special_cases() argument
[all …]
Dstd_strlprintf.c79 typedef int (*pfnFormatFloat)(FieldFormat* me, double dNumber, char* pcBuffer);
194 static int ConvertFloat(FieldFormat* me, double dNumber, char* pcBuffer, in ConvertFloat() argument
224 if (dNumber != 0.0) { in ConvertFloat()
225 nExponent = fp_log_10(dNumber); in ConvertFloat()
239 dNumber = dNumber / FP_POW_10(nExponent); in ConvertFloat()
243 dNumber = ROUND(dNumber, nPrecision); in ConvertFloat()
247 if (('e' == cType) && ((dNumber >= 10.0) || (dNumber <= -10.0))) { in ConvertFloat()
248 dNumber = dNumber / 10.0; in ConvertFloat()
254 nError = std_dtoa_decimal(dNumber, nPrecision, szIntegerPart, szFractionPart); in ConvertFloat()
260 nError = std_dtoa_hex(dNumber, nPrecision, me->cType, szIntegerPart, in ConvertFloat()
[all …]
Dstd_dtoa.h121 double fp_round( double dNumber, int nPrecision );
122 int fp_log_10( double dNumber );
123 int fp_check_special_cases( double dNumber, FloatingPointType* pNumberType );
124 int std_dtoa_decimal( double dNumber, int nPrecision,
127 int std_dtoa_hex( double dNumber, int nPrecision, char cFormat,
/external/pdfium/fxjs/xfa/
Dcfxjse_value.cpp30 double dNumber = fNumber, dNumberAbs = fabs(fNumber); in ftod() local
50 return fNumber < 0 ? ceil(dNumber * dPow - 0.5) / dPow in ftod()
51 : floor(dNumber * dPow + 0.5) / dPow; in ftod()