Numeric Data Types That Siebel VB Uses

The following table describes the numeric data types that Siebel VB uses.

Type Description Smallest Value Largest Value

Integer

2 byte integer

Negative 32,768.

Positive 32,767.

Long

4 byte integer

Negative 2,147,483,648.

Positive 2,147,483,647.

Single-Precision

4 byte floating-point number

Negative 3.402823e+38 0.0, 1.401298e-45.

Negative 1.401298e-45, 3.402823466e+38.

Double-Precision

8 byte floating-point number

Negative 1.797693134862315d+308, 0.0, 2.2250738585072014d-308.

Negative 4.94065645841247d-308, 1.797693134862315d+308.

Currency

8 byte number with a fixed decimal point

Negative 922,337,203,685,477.5808.

Positive 922,337,203,685,477.5807.

A numeric value is always signed.

You can write code that expresses an integer constant in the following ways:

  • Decimal. You can use the decimal representation to express a decimal constant.

  • Octal. You precede the constant with &O or with &o to express an octal value. For example, &o177.

  • Hexadecimal. You precede the constant with &H or with &h to express a hexadecimal value. For example, &H8001.

For more information, see Boolean Data Type.