HP Pascal/iX Reference Manual (31502-90022)

3- 6
Standard Functions
bit52 argument - abs exp pred succ
arctan ln sin
chr odd sqr
cos ord sqrt
bit52 return - pred
sqr
succ
Standard Procedures
prompt strread
read strwrite
readdir writedir
readln writeln
Example
$standard_level 'hp_modcal'$
program bits3(output);
var q:bit52;
begin
{ one way to get bit52 constants >= 2 ** 31 }
$push; type_coercion 'conversion'$
q:=bit52(123456) * 1000000000 + 789012345;
$pop$
writeln(q);
end.
Output:
123456789012345
Boolean.
The
Boolean
type is a predefined enumerated type that indicates logical
values. The elements of this data type are two constant identifiers,
true
and
false
, where
false
is less than
true
. HP Pascal defines the
type Boolean in the following way:
TYPE
Boolean = (false, true);
Permissible Operators
assignment :=
Boolean AND, OR, NOT
relational <, <=, =, <>, >=, >, IN
Standard Functions
Boolean argument - ord
pred
succ
Boolean return - eof
eoln
odd
pred
succ