Command to count the number of digits in a decimal

jospercomp shared this question 2 years ago
Answered

How to create command with Geogebra command that counts the number of digits in a decimal.

0 -> 0

0.1 -> 1


0.10 -> 1

0.01 -> 2


0.010 -> 2

Best Answer
photo

Hmm, it's not so clear, what I mean.

Hope the not so perfect attached file explains it.


Greets

mire2

Comments (6)

photo
1

Salut jospercomb,


Look here: https://wiki.geogebra.org/e...

Use the exponent of the scientific notation.


Greetings

mire2


photo
1

deleted, was hastily wrong

photo
1

Thank you!!!

photo
1

Hmm, it's not so clear, what I mean.

Hope the not so perfect attached file explains it.


Greets

mire2

photo
photo
1

-log10(0.01)

photo
1

what output for 0.041 ?

you cam try floor(-log10(0.041))

© 2023 International GeoGebra Institute