InterviewSolution
| 1. |
What are the predefined numeric datatypes in C#? |
|
Answer» The predefined numeric datatypes are subtypes of the SCALAR Data Types. The following are the subtypes of the numeric datatypes:
Signed integer in range -2,147,483,648 through 2,147,483,647, represented in 32 bits
Signed integer in range -2,147,483,648 through 2,147,483,647, represented in 32 bits
Single-precision IEEE 754-format FLOATING-point number
Double-precision IEEE 754-format floating-point number
ANSI specific fixed-point type with maximum precision of 38 decimal digits
IBM specific fixed-point type with maximum precision of 38 decimal digits
Floating type with maximum precision of 38 decimal digits
ANSI specific floating-point type with maximum precision of 126 binary digits (approximately 38 decimal digits)
ANSI and IBM specific integer type with maximum precision of 38 decimal digits
Floating-point type with maximum precision of 63 binary digits (approximately 18 decimal digits) |
|