Integer


Overview

The data type for integer values The default value is 0.



Operations
abs():Integer Returns the absolute value of an integer.
add(other:Element):Element Adds an integer to another integer of a float.
asFloat():FloatNo Documentation Specified
asInt():IntegerNo Documentation Specified
asSeq():Seq(Integer) Turns an integer into a 24 bit sequence of binary values.
bit(index:Element):Element Returns the ith bit after converting an integer into a 24 bit sequence of binary values.
byte(index:Integer):Integer Returns the byte of an indexed by index. Bytes are indexed from 1 (low) to 4 (high).
ceiling():Integer Rounds a float down to an integer.
div(other:Integer):Integer Integer division returns the number of times an integer can be divided by other a whole number of times.
floor():Integer Rounds a float down to an integer.
greater(other:Integer):Element Returns true if an integer is greater than other.
isAlphaChar():Boolean Returns true if an integer is a valid alphanumeric value.
isLowerCaseChar():Boolean Returns true if an integer is a valid lower case alphanumeric value.
isNewLineChar():Boolean Returns true if an integer is the new line alphanumeric value.
isNumericChar():Boolean Returns true if an integer is a valid numeric alphanumeric value.
isUpperCaseChar():Boolean Returns true if an integer is a valid upper case alphanumeric value.
isWhiteSpaceChar():Boolean Returns true if an integer is the white space alphanumeric value.
less(other:Element):Element Returns true if the integer is lower than other.
lift():PerformableNo Documentation Specified
lsh(n:Integer):Integer Left shift bit operation.
max(other:Integer):Integer Compares an integer with other and returns the maximum value.
min(other:Integer):Integer Compares an integer with other and returns the minimum value.
mod(other:Integer):Integer Returns the remainder when an integer is divided by other.
mul(other:Element):Element Multiples an integer by other.
pow(other:Element):FloatNo Documentation Specified
random(upper:Integer):ElementNo Documentation Specified
round():Integer Rounds a float to the nearest whole integer.
rsh(n:Integer):Integer Right shift bit operation.
slash(other:Element):Element Divides an integer by other.
sqrt():Element Returns the square root of an integer.
sub(other:Element):Element Substracts other from an integer.
to(i:Integer):Seq(Integer) Returns a sequence [self,i] where i is the argument. Providing self <= i then both self and i are present in the sequence.
toString():String Converts an integer to a string.
toString(radix:Integer):String Converts an integer to a string using the supplied radix.