Multiple choice technology mainframe

What is the result of TRUNC(12.3456,3)?

  1. 12.3

  2. 12.3000

  3. 12.346

  4. 12.345

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

The TRUNC function in REXX truncates a number to a specified number of decimal places. TRUNC(12.3456,3) keeps 3 decimal places after the decimal point, resulting in 12.345 (not rounded, just truncated). This differs from FORMAT which would round.