Constants
Types
LONGREAL =
SYSTEM.REAL64;
64-bit long real number
Variables
Done:
BOOLEAN;
Indicates the success of the last procedure call
Procedures
PROCEDURE
LongStr (x: LONGREAL;
n: INTEGER;
VAR s: ARRAY OF CHAR);
Converts long real number x
to string s
.
n
is the minimum number of charactes (s
is prepended with spaces).
PROCEDURE
LongStrFix (x: LONGREAL;
n: INTEGER;
k: INTEGER;
VAR s: ARRAY OF CHAR);
Converts long real number x
to string s
.
n
is the minimum number of charactes (s
is prepended with spaces).
k
is the number of digits after a decimal point.
PROCEDURE
LongVal (VAR s: ARRAY OF CHAR): LONGREAL;
Returns a long real number converted from string s
PROCEDURE
Str (x: REAL;
n: INTEGER;
VAR s: ARRAY OF CHAR);
Converts real number x
to string s
.
n
is the minimum number of charactes (s
is prepended with spaces).
PROCEDURE
StrFix (x: REAL;
n: INTEGER;
k: INTEGER;
VAR s: ARRAY OF CHAR);
Converts real number x
to string s
.
n
means the minimum number of charactes (s
is prepended with spaces).
k
means the number of digits after a decimal point.
PROCEDURE
Val (VAR s: ARRAY OF CHAR): REAL;
Returns a real number converted from string s
Module for REAL and LONGREAL conversion from and to a string