Hi, I have a variable measuring speed. The values are double and vary in the number of decimal points. I would like to create a new variable that will count the number of decimals in the speed variable. Please, how can this be done?
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input double speed 1.55 1.2 2 1.433 2.123 1.43 1.158 end
Comment