Roots & Decimals in Text
I'm making an applet that lets students order a mix of decimals and square roots. I make a list of each, then merge them into a single list. Surdtext[ ] helps write the roots with a radical, but puts the decimals as fractions. So I hit on the idea of using an If[ ] in the text definition,
If[Element[list7, 5] ≟ Element[list7_1, 5], Text[Element[list7, 5]], SurdText[Element[list7, 5]]]
(List 7_1 are the decimal values.)
This works on the desktop, but when I upload the sketch, it's back to fractions.
geogebra.org ^ https://www.geogebra.org/m/zstKKkhG
Any ideas on what"s the problem or how to resolve it?
Thanks, in anticipation of brilliant and kind help.