rotate

Rotates the first operand by the specified number of decimal digits. (Not binary digits!) Positive values of the second operand rotate the first operand left (multiplying by tens). Negative values rotate right (divide by 10s). If the number is NaN, or if the rotate value is less than -precision or greater than precision, an INVALID_OPERATION is signaled. An infinite number is returned unchanged. Implements the 'rotate' function in the specification. (p. 47-48)

  1. D rotate(D x, U y, Context context)
    D
    rotate
    (
    D
    U = D
    )
    (
    in D x
    ,
    in U y
    ,
    Context context = D.context
    )
  2. D rotate(D arg, U n, Context context)

Meta