rotate

(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)
  2. D rotate(D arg, U n, Context context)
    D
    rotate
    (
    D
    U : int
    )
    (
    in D arg
    ,
    U n
    ,
    Context context = D.context
    )

Meta