HP Pascal/iX Reference Manual (31502-90022)

3- 12
real argument - abs ln sqr
arctan round sqrt
cos sin trunc
exp
real return - abs exp sqr
arctan ln sqrt
cos sin
Standard Procedures
prompt strread
read strwrite
readdir writedir
readln writeln
Example
PROGRAM show_realnum(output);
VAR
realnum: real;
BEGIN
realnum := 6.023E+23;
writeln(realnum);
END.
Output:
6.02300E+23
Longreal
The
longreal
type is a predefined, simple type that represents a subset
of the real numbers. This type may have more precision and a larger
range than the type
real
. The range the subset covers is implementation
dependent in HP Pascal. For more details see the
HP Pascal/iX
Programmer's Guide
or the
HP Pascal/HP-UX Programmer's Guide
, depending
on your implementation.
Permissible Operators
assignment :=
relational <, <=, =, <>, >=, >
arithmetic -, +, *, /
Standard Functions
longreal argument - abs round
arctan sin
cos sqr
exp sqrt
ln trunc
longreal return - abs ln
arctan sin