How do I find the length of characters after a decimal point I have tried using


declare @var float
select @var = 123.345233
select len(ltrim(str(@var,25,3)))

but this always returns 3 why is this?