Home

Int

Integer class represents an operating system long value

Operations

Error

Prints error value

function : public : Error() ~ Nil

ErrorLine

Prints error value with newline

function : public : ErrorLine() ~ Nil

Factorial

Calculates the factorial of existing value

function : public : native : Factorial() ~ Int
Parameters
NameTypeDescription

Return
TypeDescription
Intfactorial of existing value

Max

Returns the largest integer value

function : public : native : Max(l:Int, r:Int) ~ Int
Parameters
NameTypeDescription
lIntvalue to compare
rIntvalue to compare

Return
TypeDescription
Intlargest integer value

MaxSize

Returns the maximum size of an integer

function : public : native : MaxSize() ~ Int
Return
TypeDescription
Intmaximum size of an integer

Min

Returns the smallest integer value

function : public : native : Min(l:Int, r:Int) ~ Int
Parameters
NameTypeDescription
lIntvalue to compare
rIntvalue to compare

Return
TypeDescription
Intsmallest integer value

MinSize

Returns the minimum size of an integer

function : public : native : MinSize() ~ Int
Return
TypeDescription
Intmaximum size of an integer

Print

Prints value

function : public : Print() ~ Nil

PrintLine

Prints value with newline

function : public : PrintLine() ~ Nil

Random

Returns a random number within the given range

function : public : Random(min:Int, max:Int) ~ Int
Parameters
NameTypeDescription
minIntminimal value
maxIntmaximal value

Return
TypeDescription
Intrandom number within range

Returns a random number between 0 and max

function : public : Random(max:Int) ~ Int
Parameters
NameTypeDescription
maxIntmaximal value

Return
TypeDescription
Intrandom number within range

ToString

Returns a string representation of the value

function : public : native : ToString() ~ String
Return
TypeDescription
Stringstring representation of the value