Which one among given data types will be best if u need precision for your data
-
COMP SIGN TRAILING
-
COMP-3 SIGN LEADING
-
COMP-1 SIGN LEADING
-
COMP-2
D
Correct answer
Explanation
The correct answer is D (COMP-2). In COBOL, COMP-2 is internal floating-point format (double precision) that provides the highest precision for decimal computations. COMP (binary) and COMP-3 (packed decimal) have limitations - COMP is fast but less precise for some decimal values, while COMP-3 stores decimal values exactly but with more limited range. COMP-2 gives the best precision for complex calculations.