I have following list of Amount (float) in my table.
Amount (float)
Amount 123 123.1 123.0123 123.789456
How can i get the number of digits a
This code will definitely help you.
SELECT Amount, LEN(SUBSTRING(CAST(Amount as VARCHAR),CHARINDEX('.',CAST(Amount as VARCHAR))+1,LEN(Amount))) Result FROM [Your Table Name]