Searched refs:intpart (Results 1 – 10 of 10) sorted by relevance
/external/python/cpython2/Lib/ |
D | fpformat.py | 43 sign, intpart, fraction, exppart = res.group(1,2,3,4) 48 return sign, intpart, fraction, expo 50 def unexpo(intpart, fraction, expo): argument 54 intpart, fraction = intpart + fraction[:expo], fraction[expo:] 56 intpart = intpart + '0'*(expo-f) 58 i = len(intpart) 59 intpart, fraction = intpart[:expo], intpart[expo:] + fraction 62 return intpart, fraction 64 def roundfrac(intpart, fraction, digs): argument 68 return intpart, fraction + '0'*(digs-f) [all …]
|
D | decimal.py | 553 intpart = m.group('int') 554 if intpart is not None: 558 self._int = str(int(intpart+fracpart)) 1033 intpart = '0' 1036 intpart = self._int+'0'*(dotplace-len(self._int)) 1039 intpart = self._int[:dotplace] 1048 return sign + intpart + fracpart + exp 3710 intpart = '0' 3713 intpart = self._int + '0'*(dotplace-len(self._int)) 3716 intpart = self._int[:dotplace] or '0' [all …]
|
/external/openssh/openbsd-compat/ |
D | bsd-snprintf.c | 654 LLONG intpart; in ROUND() local 656 intpart = (LLONG)value; in ROUND() 657 value = value - intpart; in ROUND() 658 if (value >= 0.5) intpart++; in ROUND() 660 return intpart; in ROUND() 716 double intpart; in fmtfp() local 760 my_modf(temp, &intpart); in fmtfp() 762 fracpart = ROUND((POW10(max)) * (ufvalue - intpart)); in fmtfp() 765 intpart++; in fmtfp() 771 temp = intpart*0.1; in fmtfp() [all …]
|
/external/eigen/unsupported/Eigen/src/MatrixFunctions/ |
D | MatrixPower.h | 424 void split(RealScalar& p, RealScalar& intpart); 460 RealScalar intpart; in compute() 461 split(p, intpart); in compute() 464 computeIntPower(res, intpart); in compute() 470 void MatrixPower<MatrixType>::split(RealScalar& p, RealScalar& intpart) in split() argument 475 intpart = floor(p); in split() 476 p -= intpart; in split() 486 ++intpart; in split()
|
/external/python/cpython2/Lib/test/ |
D | test_strtod.py | 40 intpart = int(m.group('int') + fraction) 43 a, b = intpart*10**max(exp, 0), 10**max(0, -exp)
|
/external/python/cpython2/Objects/ |
D | object.c | 1024 double intpart, fractpart; in _Py_HashDouble() local 1039 fractpart = modf(v, &intpart); in _Py_HashDouble() 1042 if (intpart > LONG_MAX/2 || -intpart > LONG_MAX/2) { in _Py_HashDouble() 1053 x = (long)intpart; in _Py_HashDouble()
|
D | floatobject.c | 537 double intpart; in float_richcompare() local 551 fracpart = modf(i, &intpart); in float_richcompare() 552 vv = PyLong_FromDouble(intpart); in float_richcompare()
|
/external/python/cpython2/Doc/reference/ |
D | lexical_analysis.rst | 673 pointfloat: [`intpart`] `fraction` | `intpart` "." 674 exponentfloat: (`intpart` | `pointfloat`) `exponent` 675 intpart: `digit`+ 700 imagnumber: (`floatnumber` | `intpart`) ("j" | "J")
|
/external/python/cpython2/Modules/ |
D | datetimemodule.c | 1865 double intpart; in accum() local 1880 fracpart = modf(dnum, &intpart); in accum() 1881 x = PyLong_FromDouble(intpart); in accum() 1908 fracpart = modf(dnum, &intpart); in accum() 1909 x = PyLong_FromDouble(intpart); in accum()
|
/external/v8/tools/profviz/ |
D | gnuplot-4.6.3-emscripten.js | 3774 function _modf(x, intpart) { argument 3775 HEAPF64[((intpart)>>3)]=Math.floor(x) 3776 return x - HEAPF64[((intpart)>>3)];
|