LongInt

Module with operation on LONGINT

Procedures

Max

Return largest of x & y

PROCEDURE Max* (x, y : LONGINT) : LONGINT;

Min

Return smallest of x & y

PROCEDURE Min* (x, y : LONGINT) : LONGINT;

Exp

Integer power function

PROCEDURE Exp*(exp : LONGINT; base := 2 : LONGINT): LONGINT;

Random

Next psuedo random number between min and max

PROCEDURE Random* (min := MIN(LONGINT), max := MAX(LONGINT) : LONGINT): LONGINT;

FromString

Convert string str to LONGINT and with optional start and length into str.

Return TRUE if success.

PROCEDURE FromString* (VAR result : LONGINT; str- : ARRAY OF CHAR; start := 0 : LONGINT ; length := -1 : LONGINT): BOOLEAN;