Hello allHow can I get a percentage as a 2 decimal point number?I have a function that calculates the percentage:CREATE FUNCTION dbo.fn_CalculatePercentages ( @totalCount int, @count int)RETURNS DECIMAL(5,2)ASBEGIN DECLARE @percentage SMALLINT SET @percentage = (100/CONVERT(DECIMAL,@totalCount))* @count RETURN @percentageENDGO
However, the result is always rounded (not sure whether rounded up or down):97.0045.0034.00Whereas I want something like this:97.6745.2334.89Thanks in advanceHearty head pats