Home
last modified time | relevance | path

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

/third_party/node/deps/openssl/openssl/crypto/bio/
Dbio_print.c553 long intpart; in roundv() local
554 intpart = (long)value; in roundv()
555 value = value - intpart; in roundv()
557 intpart++; in roundv()
558 return intpart; in roundv()
579 unsigned long intpart; in fmtfp() local
666 intpart = (unsigned long)ufvalue; in fmtfp()
680 fracpart = roundv(pow_10(max) * (ufvalue - intpart)); in fmtfp()
683 intpart++; in fmtfp()
689 iconvert[iplace++] = "0123456789"[intpart % 10]; in fmtfp()
[all …]
/third_party/openssl/crypto/bio/
Dbio_print.c553 long intpart; in roundv() local
554 intpart = (long)value; in roundv()
555 value = value - intpart; in roundv()
557 intpart++; in roundv()
558 return intpart; in roundv()
579 unsigned long intpart; in fmtfp() local
666 intpart = (unsigned long)ufvalue; in fmtfp()
680 fracpart = roundv(pow_10(max) * (ufvalue - intpart)); in fmtfp()
683 intpart++; in fmtfp()
689 iconvert[iplace++] = "0123456789"[intpart % 10]; in fmtfp()
[all …]
/third_party/python/Python/
Dpytime.c55 _PyTime_t intpart, remaining; in _PyTime_MulDiv() local
62 intpart = ticks / div; in _PyTime_MulDiv()
66 return intpart * mul + remaining; in _PyTime_MulDiv()
142 double intpart; in _PyTime_DoubleToDenominator() local
146 floatpart = modf(d, &intpart); in _PyTime_DoubleToDenominator()
152 intpart += 1.0; in _PyTime_DoubleToDenominator()
156 intpart -= 1.0; in _PyTime_DoubleToDenominator()
160 if (!_Py_InIntegralTypeRange(time_t, intpart)) { in _PyTime_DoubleToDenominator()
164 *sec = (time_t)intpart; in _PyTime_DoubleToDenominator()
200 double intpart; in _PyTime_ObjectToTime_t() local
[all …]
/third_party/python/Lib/test/
Dtest_time.py1000 floatpart, intpart = math.modf(secs)
1001 intpart = int(intpart)
1006 intpart -= 1
1009 intpart += 1
1010 return (intpart, floatpart)
Dtest_strtod.py39 intpart = int(m.group('int') + fraction)
42 a, b = intpart*10**max(exp, 0), 10**max(0, -exp)
/third_party/python/Modules/_decimal/libmpdec/
Dio.c1095 const char *sign = NULL, *intpart = NULL, *dot = NULL; in _mpd_apply_lconv() local
1109 intpart = dp++; in _mpd_apply_lconv()
1113 n_int = (mpd_ssize_t)(dp-intpart); in _mpd_apply_lconv()
1131 _mpd_add_sep_dot(result, sign, intpart, n_int, dot, in _mpd_apply_lconv()
1142 _mpd_add_sep_dot(result, sign, intpart, n_int, dot, in _mpd_apply_lconv()
/third_party/python/Lib/
D_pydecimal.py561 intpart = m.group('int')
562 if intpart is not None:
566 self._int = str(int(intpart+fracpart))
1066 intpart = '0'
1069 intpart = self._int+'0'*(dotplace-len(self._int))
1072 intpart = self._int[:dotplace]
1081 return sign + intpart + fracpart + exp
3816 intpart = '0'
3819 intpart = self._int + '0'*(dotplace-len(self._int))
3822 intpart = self._int[:dotplace] or '0'
[all …]
/third_party/python/Modules/_decimal/tests/
Dranddec.py77 intpart = digits(intlen)
79 return ''.join((intpart, '.', fracpart))
/third_party/python/Objects/
Dfloatobject.c472 double intpart; in float_richcompare() local
485 fracpart = modf(i, &intpart); in float_richcompare()
486 vv = PyLong_FromDouble(intpart); in float_richcompare()
/third_party/python/Modules/
D_datetimemodule.c2352 double intpart; in accum() local
2367 fracpart = modf(dnum, &intpart); in accum()
2368 x = PyLong_FromDouble(intpart); in accum()
2392 fracpart = modf(dnum, &intpart); in accum()
2393 x = PyLong_FromDouble(intpart); in accum()