Skip to content
abinition edited this page Nov 6, 2014 · 2 revisions

#int

###Convert to an int value or create an int variable.

Syntax

result = int value ;
int variable [= value] ; 

Arguments

  1. list value

A value from -2147483647 to 2147483648.

Return Value

int result
  • -2147483647 to 2147483648 : A value from min to max.

The STATUS variable is set to $ACKNOWLEDGE

When the argument is an array variable, all the elements in the array are converted, and the result will be a vector array

Exceptions

  • %ARGUMENT: Invalid arguments. Usage: int variable [= value] ;

  • %IDENTIFIER: 'variable' argument is not a valid identifier, literal, or reference

Description

  • Convert to an int value or create an long variable.

Examples

int a = 1 ;
describe a ;

b = 99 ;
describe b ;

a = int b ;
put a ;

c = { int x = 0 } ;
Clone this wiki locally