I have following list of Amount (float)
in my table.
Amount
123
123.1
123.0123
123.789456
How can i get the number of digits after the decimal point.
Duplicate ?: I have checked already existing posts, but there is no correct way to handle the float
numbers with or without decimal part
.
Result
Amount Result
123 0
123.1 1
123.0123 4
123.789456 6
EDIT :
After spending some valuable time, i have found some relatively simple script to handle this. My answer is below
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…