238
Pascal 4.0 User’s Guide
11
ieee_retrospective()
The
libm
function
ieee_retrospective()
prints to
stderr
information
about unrequited exceptions and nonstandard IEEE modes. Pascal programs
call
ieee_retrospective()
on exit by default.
SPARC Libraries
The
libm
and
libsunmath
libraries also contain:
•
Argument reduction functions, using infinitely precise Pi and trigonometric
functions scaled in Pi
•
Data conversion routines for converting floating-point data between IEEE
and non-IEEE formats
•
Random number generators
There are two facilities for generating uniform pseudo-random numbers,
addrans
(3M) and
lcrans
(3M).
addrans
is an additive random number
generator;
lcrans
is a linear congruential random number generator. In
addition,
shufrans
(3M) shuffles a set of pseudo-random numbers to provide
even more randomness for applications that need it.
program TestIEEEValues(output);
#include "math_p.h"
var
l0: integer32 := 0;
begin
writeln('IEEE values');
writeln(infinity);
writeln(signaling_nan(l0));
writeln(quiet_nan(l0));
writeln(max_normal);
writeln(max_subnormal);
writeln(min_normal);
writeln(min_subnormal);
end.
Summary of Contents for SunSoft Pascal 4.0
Page 14: ...xiv Pascal 4 0 User s Guide ...
Page 16: ...xvi Pascal 4 0 User s Guide ...
Page 30: ...6 Pascal 4 0 User s Guide 1 ...
Page 160: ...136 Pascal 4 0 User s Guide 6 ...
Page 268: ...244 Pascal 4 0 User s Guide 11 ...
Page 320: ...296 Pascal 4 0 User s Guide B ...
Page 331: ...Index 307 ...
Page 333: ......