FractionText Command
From GeoGebra Manual
- FractionText[Number]
- Converts the number to a fraction, which is displayed as a (LaTeX) text object in the Graphics View.
- Example: If a: y = 1.5 x + 2 is a line, then FractionText[Slope[a]] gives you the fraction 3/2 as a text.