#### mformazhar1980

##### Junior Member level 1

**fractionary numbers**

hi guys

i need to round of a number first and then Oring it with 128 can some one help me how to round of the fractional part thanks

signed int a;

unsigned int b;

unsigned int c;

if(c<b)

{

a=0.46*(b-c) | 128;

}

now if we suppose that b=460 and c=200 the expression 0.46*(b-c) then gives 119.6 so i need to round it to 120? and then Ored with 128 is it possible if so then how?

thanks

hussain