I have logic provided from excel as
CONCATENATE(ROUND(slno/256,0),ROUNDUP(((slno /256)-ROUND(slno/256,0))*256,0))
and i am converting in to c# the same.As per the logic if slno is 2696709 then answer should be 105345.But when i used following c# code i am getting it as 10534-2686169,how to correct and get it as 105345
Wrong code i used is as below
decimal slno = 2696709;
string result = Math.Round((slno / 256), 0).ToString() +
Math.Ceiling(((slno / 256) -
Math.Round((slno / 256), 0) * 256)).ToString();