Sparc libraries, Ieee_retrospective() – HP SunSoft Pascal 4.0 User Manual

Page 262

Advertising
background image

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.

Advertising