LOWER2

LOWER2(x,n) returns the value:


Read syntax diagramSkip visual syntax diagram
>>-LOWER2(x,n)-------------------------------------------------><

Note: LOWER2(x,n) is equivalent to the assembler SRA(x,n).
x
Expression. x must have a computational type.
n
Expression. n must have a computational type.

If x is SIGNED REAL FIXED BIN(p,0), then the result has the same attributes. Otherwise, x is converted to SIGNED REAL FIXED BIN(p,0) and the result has the same attributes.

The result is undefined if n is negative or if n is greater than M.

Examples

  lower2 (+6,1)                       /*  Produces 3   */

  lower2 (-6,1)                       /*  Produces -3  */

  lower2 (-7,1)                       /*  Produces -4  */





Published: 23 December 2018