Hi, I want to make a question where a student gives a value x and y, and Stack checks if x and y have the same amount of decimal places.

The Answer Test, NumDecPlaces, needs that I inform the number of decimal places to check, which I don't know yet.

I was thinking if there is a maxima command that returns the number of decimal places of a number to implement the test, but I couldn't find any.

Does anyone know how to implement this?