Multiple choice technology web technology

Which one among given data types will be best if u need precision for your data

  1. COMP SIGN TRAILING

  2. COMP-3 SIGN LEADING

  3. COMP-1 SIGN LEADING

  4. COMP-2

Reveal answer Fill a bubble to check yourself
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.