Posts by André Luiz • 31 points
1 post
- 
		3 votes3 answers189 viewsA: LEN function, know number of characters of a numberFirst create the function CREATE FUNCTION dbo.countDigits(@A float) RETURNS tinyint AS BEGIN declare @R tinyint IF @A IS NULL RETURN NULL set @R = 0 while @A - str(@A, 18 + @R, @r) <> 0 begin…