Multiple choice technology mainframe

SAY TRUNC(1234.5,3) Result:

  1. 1234.5

  2. 1234.500

  3. 123

  4. 234

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The TRUNC(number, n) function in REXX truncates a number to 'n' decimal places. If 'n' is larger than the current decimal count, it pads with zeros. TRUNC(1234.5, 3) results in 1234.500. It does not perform rounding.