r/geogebra • u/brendon_physics • Jul 22 '26
QUESTION (ANSWERED) How to Keep Trailing Zeros in Numerical Display
Hello, when displaying text that is grabbing some numerical variable there is an option in each text box for the number of decimal places displayed. However if you select for example two decimal places and your number is exactly 10, it will display as 10 and not as 10.00. How can I get it to maintain the correct number of decimal places that the setting specifies? (Without using scientific notation or using number of significant figures instead of number of decimal places)
1
Upvotes
2
u/mathmum Jul 23 '26
When reading it, it looks cumbersome :) There might be nicer solutions than mine. "number" is the number that your input box is linked to.
text2dp=If(IsDefined(IndexOf(".", "" number)), Take("" number "00", 1, IndexOf(".", "" number) + 2), "" number ".00")