Fractions in Programs

When you're typing a program, you can type a number as a fraction — but it's converted to its decimal value. All numeric values in a program are shown as decimal values — Fraction–display mode is ignored.

When you're running a program, displayed values are shown using Fraction–display mode if it's active. If you're prompted for values by INPUT instructions, you may enter fractions, regardless of the display mode.

A program can control the fraction display using the /c function and by setting and clearing flags 7, 8, and 9. Setting flag 7 turns on Fraction–display mode — isn't programmable. See "Flags" in chapter 13.

See chapters 12 and 13 for information about working with programs.

Fractions 5–9