OScript API/Built-in Package Index

Class: Long

An OScript Long is a 64-bit signed integer and can take on any value in the range of -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807.

Long values can be obtained by:

  • declaring an Long variable (default value of 0)
  • using an Long literal (for example 2147483649, -2147483649)
  • evaluating an expression that results in an Long value, where the expression has a Long value(for example 2147483649 + 21)
  • executing a function that returns an Long value (for example File.FreeSpace())

Long expressions are created by joining two or more Longs (using the arithmetic or bitwise logical operators) to form an expression whose result is another Long. The following example illustrates:

    Long big = 2147483649
    Long smaller = ( big - 10 )

Arithmetic expressions can be created containing a mixture of Reals, Longs and Integers. When this is done, Integer math operations are performed until a Long or Real is encountered. Long operations are performed until a Real is encountered. From that point on, Real math operations are performed.

 Copyright © 2021 OpenText Corporation. All rights reserved.