What is the result of TRUNC(12.3456,3)?
-
12.3
-
12.3000
-
12.346
-
12.345
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.