Skip to Main Content
Computer Arithmetic and Validity
book

Computer Arithmetic and Validity

by Ulrich Kulisch
April 2013
Intermediate to advanced content levelIntermediate to advanced
456 pages
16h 7m
English
De Gruyter
Content preview from Computer Arithmetic and Validity
Section 6.9 Overflow and underflow treatment 217
Thus the sign of the number is negative if S D 1 and it is positive if S D 0. The mul-
tiplexer is controlled by a logical control variable cv. We assume that the value true
is represented by 0 and the value false by 1. The two assignments in Figure 6.26
perform the roundings
0
z D .1/
S
4jzj and
b
z D .1/
S
5
jzj. See equa-
tion (5.2.8).
The different roundings of the set f
5
, 4,
, D 0.1/bg can be obtained by very
simple values of the control variable cv. Table 6.2 displays values of cv for different
roundings.
Table 6.2. A universal rounding unit.
rounding
5
z 4z
0
z
b
z
, D 1.1/b 1
cv SS 01 z
nC1
If b is an ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Arithmetic and Logic in Computer Systems

Arithmetic and Logic in Computer Systems

Mi Lu
Interval Analysis

Interval Analysis

Günter Mayer

Publisher Resources

ISBN: 9783110301731