5-8 Fractions
Examples of Fraction Displays
The following table shows how the number 2.77 is displayed in the three fraction
formats for two /c values.
The following table shows how different numbers are displayed in the three fraction
formats for a /c value of 16.
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
indicatior turns off if the fraction matches the decimal representation exactly.
Otherwise, the accuracy indicatior 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.
Fraction
Format
How 2.77 Is Displayed
/c
= 4095
/c
= 16
Most Precise
2 77/100
(2.7700)
2 10/13
(2.7692)
Factors of Denominator
2 1051/1365
(2.7699)
2 3/4
(2.7500)
Fixed Denominator
2 3153/4095
(2.7699)
2 12/16
(2.7500)
Fraction
Format
Number Entered and Fraction Displayed
22.5
2
2
/
3
2.9999
2
16
/
25
Most precise
2 2 1/2 2 2/3
3
2 9/14
Factors of
denominator
2 2 1/2 2 11/16
3
2 5/8
Fixed denominator
2 0/16 2 8/16 2 11/16
3 0/16
2 10/16
For a /c value of 16.