SQL - Rounding off to 2 decimal places
Could you not cast your result as numeric(x,2)
? Where x <= 38
select
round(630/60.0,2),
cast(round(630/60.0,2) as numeric(36,2))
Returns
10.500000 10.50
As with SQL Server 2012, you can use the built-in format function:
SELECT FORMAT(Minutes/60.0, 'N2')
(just for further readings...)
you can use
select cast((630/60.0) as decimal(16,2))