PyDocs

Nav

Numeric and Mathematical Modules

Decimal.rotate

decimal

method of Decimal
  • Decimal.rotate(other, context=None)
Returns a rotated copy of self's digits, value-of-other times.

The second operand must be an integer in the range -precision
through precision.  The absolute value of the second operand gives
the number of places to rotate.  If the second operand is positive
then rotation is to the left; otherwise rotation is to the right.
The coefficient of the first operand is padded on the left with
zeros to length precision if necessary.  The sign and exponent of
the first operand are unchanged.
0 Examples
No examples for decimal/Decimal.rotate.
See Also
No see-alsos for decimal/Decimal.rotate
0 Notes
No notes for Decimal.rotate