FractionText Command

From GeoGebra Manual
Revision as of 11:43, 29 January 2023 by Mathmum (talk | contribs) (indentation and general polishing)
Jump to: navigation, search


FractionText( <Number> )
Converts the number to a fraction, and displays it as a LaTeX text in the Menu view graphics.svg Graphics View.
Example: If a: y = 1.5 x + 2 is a line, then FractionText(Slope(a)) creates the LaTeX text \frac{3}{2}.
FractionText( <Point> )
Converts the coordinates of the point in fraction form, and displays them as a LaTeX text in the Menu view graphics.svg Graphics View.
Example: If A=(1.33,0.8) is a point, then FractionText(A) creates the LaTeX text \left( \frac{133}{100} ,\frac{4}{5} \right) .
FractionText( <Number>, <Boolean>)
Converts the number to a fraction, and displays it as a LaTeX text in the Menu view graphics.svg Graphics View.
The boolean sets the position of a possible negative sign of the fraction. If true, the minus sign will be displayed in the numerator, if false the minus sign will be displayed in front of the fraction.
Examples:
If n = -0.8 is a number, then
  • FractionText(n, true) creates the LaTeX text \frac{- 4}{5}.
  • FractionText(n, false) creates the LaTeX text -\frac{4}{5}.
Note: See also SurdText command.
© 2024 International GeoGebra Institute