I am working with SSMS 2014.

My sample code is as follows:

```
select name
      ,family
      ,group
      ,mcount
      ,icount
      ,(cast(icount as demical(10,2)) / cast(mcount as decimal(10,2))) as per_unit 
from ( select distinct 
           mc.name
          ,mc.family
          ,mc.group
          ,sum(mc.mcount) over (partition by mc.name) as mcount
          ,sum(ic.icount) over (partition by ic.name) as icount
      from mc
      join ic
         on ic.num1 = mc.num1) as a
order by mcount desc

```

The first record of my per unit column is supposed to divide 76 / 50. this should = 1.52, however, it returns 1.5200000000000. the second record divides 52/28 and returns 1.8571428571428.

I am looking for 2 decimal places. I read to cast as decimal(10,2) however this seems to not be working. 

What am I doing wrong??
thank you