How to get the length of the fraction? If at all possible, without using a string operation or loop
should all return length of 3:
5.234
5.23400
5.234000
Any programming language accepted
[EDIT]
Not homework, I want to display fractions at least. For example, I defined a numeric (18.8) in the database. If the user entered only 5.234, the data stored in the database is 5.23400000. I just want to display it only as 5.234
source
share