Home
last modified time | relevance | path

Searched refs:intpart (Results 1 – 10 of 10) sorted by relevance

/external/python/cpython2/Lib/
Dfpformat.py43 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 …]
Ddecimal.py553 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/
Dbsd-snprintf.c654 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/
DMatrixPower.h424 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/
Dtest_strtod.py40 intpart = int(m.group('int') + fraction)
43 a, b = intpart*10**max(exp, 0), 10**max(0, -exp)
/external/python/cpython2/Objects/
Dobject.c1024 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()
Dfloatobject.c537 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/
Dlexical_analysis.rst673 pointfloat: [`intpart`] `fraction` | `intpart` "."
674 exponentfloat: (`intpart` | `pointfloat`) `exponent`
675 intpart: `digit`+
700 imagnumber: (`floatnumber` | `intpart`) ("j" | "J")
/external/python/cpython2/Modules/
Ddatetimemodule.c1865 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/
Dgnuplot-4.6.3-emscripten.js3774 function _modf(x, intpart) { argument
3775 HEAPF64[((intpart)>>3)]=Math.floor(x)
3776 return x - HEAPF64[((intpart)>>3)];