Multiple choice technology

What will be the output of the following typecasting : ((decimal(4)) 983)

  1. " 983"

  2. "0983"

  3. "983.0"

  4. None of the above

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

When casting 983 to decimal(4), it formats with leading space to achieve the specified width of 4 characters, resulting in ' 983'. The decimal(4) specifies the display format width, not decimal places.