Fraction length
问题 How to get the fraction length? If at all possible, without using string operation or loop should all return length of 3: 5.234 5.23400 5.234000 Any programming language is accepted [EDIT] Not a homework, I want to display fractions at its minimum. Example, I defined numeric(18,8) in database. If the user entered only 5.234, the data saved in database is 5.23400000. I just want to display it back as 5.234 only 回答1: If Int(num) = num Then Return 0 num *= 10 If Int(num) = num Then Return 1 num