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:

  • PLS_INTEGER

Signed integer in range -2,147,483,648 through 2,147,483,647, represented in 32 bits

  • BINARY_INTEGER

Signed integer in range -2,147,483,648 through 2,147,483,647, represented in 32 bits

  • BINARY_FLOAT

Single-precision IEEE 754-format FLOATING-point number

  • BINARY_DOUBLE

Double-precision IEEE 754-format floating-point number

  • DEC(prec, scale)

ANSI specific fixed-point type with maximum precision of 38 decimal digits

  • DECIMAL(prec, scale)

IBM specific fixed-point type with maximum precision of 38 decimal digits

  • NUMERIC(PRE, secale)

Floating type with maximum precision of 38 decimal digits

  • DOUBLE PRECISION

ANSI specific floating-point type with maximum precision of 126 binary digits (approximately 38 decimal digits)

  • SMALLINT

ANSI and IBM specific integer type with maximum precision of 38 decimal digits

  • REAL

Floating-point type with maximum precision of 63 binary digits (approximately 18 decimal digits)



Discussion

No Comment Found