Lasso Soft Inc. > Home

Integer

The integer data type represents positive or negative whole numbers. Integers are stored as 64-bit signed values.

Integers are usually created as literals. Positive integer literals are simply number such as 1, 34, or 5018. Negative integer literals must be surrounded by parentheses such as (-1), (-35), or (-1000000).

Integers can be manipulated using a number of mathematical symbols. For example, (1 + 1), (5 - 3), (2 * 3), (10 / 5), or (9 % 10). An expression with an integer on either side of the mathematical symbol will always return an integer value. In particular, (10 % 3) will return the integer 3 rather than the decimal 3.333333.

Integers can be formatted using the [Integer->SetFormat] tag. Integers can be used as storage for bit values using the [Integer->Bit...] member tags. See the descriptions of each individual member tag for more information.

Strings or decimals can be cast to integers using the [Integer] tag. For example, [Integer: '3'] returns the integer 3 and [Integer: 7.333333] returns the integer 7.

  • Syntax
  • Parameters
[Variable: 'myInteger' = 5]

[Variable: 'myInteger' = (-10)]

[Variable: 'myInteger' = (Integer: 3.14159)]

[Variable: 'myInteger' = (Integer: '54')]

[Output: (1 + 1)]

[Output: (34 % 2)]
Examples

See the Lasso 8 Language Guide for examples of how to use this tag.

Tag Link Integer Category Data Type
Type Data Type Data Source Any
Support Preferred Version 5.0
Output Type Security
Implementation Internal Sets Lasso 6.0, Lasso 5.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft