>This formula returned the correct answer for the values I tested:
>?Len(Chrtran(Transform(xx),Set("Point"),''))-Len(transform(Int(xx)))
>
>>I'm sure there is an obvious answer but it's the weekend ...
>>
>>Given a numeric variable which may or may not have digits after the decimal point, what would be the quickest way to know the number of digits that occur after decimal point, zero or more?
Did you test for negative numbers also? Relevant thread on MSDN forum - seems like there is no simple answer
http://social.msdn.microsoft.com/Forums/en-US/transactsql/thread/7c9cd1fe-6119-46b3-a268-dd733c6fbb67
If it's not broken, fix it until it is.
My Blog