5–8 Fractions
File name 33s-E-Manual-1008-Publication(1st).doc Page : 386
Printed Date : 2003/10/8 Size : 13.7 x 21.2 cm
Rounding Fractions
If Fraction–display mode is active, the RND function converts the number in the
X–register to the closest decimal representation of the fraction. The rounding is
done according to the current /c value and the states of flags 8 and 9. The
accuracy indicator turns off if the fraction matches the decimal representation
exactly. Otherwise, the accuracy indicator stays on, (See "Accuracy Indicators"
earlier in this chapter.)
In an equation or program, the RND function does fractional rounding if
Fraction–display mode is active.
Example:
Suppose you have a 56
3
/
4
–inch space that you want to divide into six equal
sections. How wide is each section, assuming you can conveniently measure
1
/
16
–inch increments
?
What's the cumulative roundoff error
?
Keys: Display: Description:
16
º
Ê
Sets up fraction format for
1
/
16
–inch increments. (Flags 8
and 9 should be the same as for
the previous example.)
56
Ë
3
Ë
4
e
D
Stores the distance in D.
6
¯
The sections are a bit wider than
9
7
/
16
inches.
¹
f
Rounds the width to this value.
6
¸
Width of six sections.
h
D
Ã
The cumulative round off error.
º
·
{
} 8
Clears flag 8.
¹
É
Turns off Fraction–display mode.