Multiple choice technology programming languages

The value 38245.3975 displayed using the format DOLLAR12.2 and DOLLAR8.2 are:

  1. $38,245.39 and 38245.39
  2. $38,245.40 and $38245.40
  3. $38,245.40 and 38245.40
  4. $38,245.40 and 38,245.40
Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The DOLLAR12.2 format displays values with a leading dollar sign, commas as thousands separators, and a decimal point with two decimal places, rounding 38245.3975 to $38,245.40. The DOLLAR8.2 format does not have enough width to display the dollar sign and commas, so SAS falls back to a standard numeric format, yielding 38245.40.