This is in reference to a question on stackoverflow - https://stackoverflow.com/questions/22445470/getting-more-data-while-converting-data-int-to-float-and-doing-division-and-mult#22445470
The following sql-scripts will generate values below, same code here in SQLFiddle with results
DECLARE @TableA TABLE
(
Students INT
,[Day] INT
,Shifts INT
)
INSERT INTO @TableA
VALUES ( 129, 11, 4 )
, ( 91, 9, 6 )
, ( 166, 19, 8 )
, ( 164, 26, 12 )
, ( 146, 11, 6 )
, ( 147, 16, 8 )
, ( 201, 8, 3 )
, ( 164, 4, 2 )
, ( 186, 8, 6 )
, ( 165, 7, 4 )
, ( 171, 10, 4 )
, ( 104, 5, 4 )
, ( 1834, 134, 67 );
SELECT Students
,Day
,Shifts
,CAST(Day AS DECIMAL(12,1)) / CAST(Shifts AS DECIMAL(12,1)) Divs
,Students * (CAST(Day AS DECIMAL(12,1)) / CAST(Shifts AS DECIMAL(12,1))) StuDivs
FROM @TableA
St D S Div Stu*Div
129 11 4 2.75000000000000 354.75000000000000
91 9 6 1.50000000000000 136.50000000000000
166 19 8 2.37500000000000 394.25000000000000
164 26 12 2.16666666666666 355.33333333333224
146 11 6 1.83333333333333 267.66666666666618
147 16 8 2.00000000000000 294.00000000000000
201 8 3 2.66666666666666 535.99999999999866
164 4 2 2.00000000000000 328.00000000000000
186 8 6 1.33333333333333 247.99999999999938
165 7 4 1.75000000000000 288.75000000000000
171 10 4 2.50000000000000 427.50000000000000
104 5 4 1.25000000000000 130.00000000000000
Tot-1834 134 67 2.00000000000000 3668.00000000000000
So what OP wanted is for SUM(Students*(Days/Shifts))=SUM(Students)*(SUM(DAYS)/SUM(SHIFTS))? So it there mathematical term to describe this and should this ever be equal to each other. My math is really hazy been too many years since last math class.