Lines Matching full:decimal
17 import decimal
426 # The size of the decimal after sum,mean and median varies, thus we cut
427 # the decimal number, by rounding it. It has no impact on the output,
428 # because we have a precision of the decimal points at the output.
554 return self._time_out * decimal.Decimal(factor)
559 return self._time_in * decimal.Decimal(factor)
563 return (self._time_out - self._time_in) * decimal.Decimal(factor)
772 To prevent float rounding errors we use Decimal internally
774 return decimal.Decimal(time_ns) / decimal.Decimal(1e9)
872 if time >= decimal.Decimal(lower_time_limit):
876 if time <= decimal.Decimal(upper_time_limit):
882 if (time >= decimal.Decimal(lower_time_limit) and
883 time <= decimal.Decimal(upper_time_limit)):
886 elif time > decimal.Decimal(upper_time_limit):