BigInt

See Also: Declaring Variables, Variable Declaration Commands, Struct, Integer, UBigInt

Purpose

Declares one or more BigInt (eight-byte integer) variables.

Syntax

To declare BigInt variables

BigInt {identifier} [… {identifier}]

Where

To declare array variables of type BigInt

BigInt{dimension-list} {identifier} […{identifier}]

Where

What It Does

The BigInt command declares eight byte integer variables, the range of which is -9223372036854775808 to 9223372036854775807 (-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807).

Multiple variables may be declared on one command line, with their names separated from each other by spaces.

Examples

Procedure Test

    BigInt biMyVar

 

    Move 1000000000000000 To biMyVar

End_Procedure

This example declares a BigInt variable named biMyVar and initializes its value.

 

BigInt[] biDriveSizeInBytes

This example declares 1 dynamic array variable, named biDriveSizeInBytes, containing an undefined number of elements of type BigInt.

BigInt[5] biDriveSizeInBytes

This example declares 1 static array variable, named biDriveSizeInBytes, containing 5 of elements of type BigInt.

BigInt[][3] biDriveSizeInBytes

This example creates a two-dimensional dynamic array variable named biDriveSizeInBytes, containing an undefined number of elements of type BigInt. Conceptually, this represents a rectangular array with an undefined number of rows, each of 3 columns.

You can declare dynamic multi-dimensional arrays where all dimensions are dynamic; these are called jagged arrays.

Notes