Lines Matching full:places
54 * The decimal module incorporates a notion of significant places so that ``1.30
62 alterable precision (defaulting to 28 places) which can be as large as needed for
255 places:
824 operand gives the number of places to rotate. If the second operand is
850 operand gives the number of places to shift. If the second operand is
937 For example, the following code sets the current decimal precision to 42 places,
1849 def moneyfmt(value, places=2, curr='', sep=',', dp='.',
1853 places: required number of places after the decimal point
1857 only specify as blank when places is zero
1865 >>> moneyfmt(d, places=0, sep='.', dp='', neg='', trailneg='-')
1875 q = Decimal(10) ** -places # 2 places --> '0.01'
1882 for i in range(places):
1884 if places:
2012 Q. In a fixed-point application with two decimal places, some inputs have many
2013 places and need to be rounded. Others are not supposed to have excess digits
2016 A. The :meth:`~Decimal.quantize` method rounds to a fixed number of decimal places. If
2021 >>> # Round to two places
2025 >>> # Validate that a number does not exceed two places
2039 non-integer multiplication, will change the number of decimal places and need to
2084 of significant places in the coefficient. For example, expressing