|
From: Phil H. <phi...@De...> - 2005-06-27 12:56:09
|
>=20 > This is still not working right, > Iv'e been scratching my head on this all day.. >=20 > I'm trying to get the value of 128.5 > But instead all the mentioned formula's are giving me 129... >=20 > What i'm trying to express is this.. >=20 > (2^8+1)/ 2 =3D 128.5 >=20 > So in C/C++ it should be pow(2,8)/2+1 (However it returns 129) >=20 Shouldn't it be (pow(2,8)+1)/2 ? This email is confidential and intended solely for the use of the individ= ual to whom it is addressed. If you are not the intended recipient, be ad= vised that you have received this email in error and that any use, dissem= ination, forwarding, printing, or copying of this email is strictly prohi= bited. If you have received this email in error please contact the sender= =2E Any views or opinions presented are solely those of the writer and do= not necessarily represent those of Deep Sea Electronics Plc.=0A=0ADeep S= ea Electronics Plc, Highfield House, Hunmanby Industrial Estate, North Yo= rkshire YO14 0PH, England. Registered in England No. 1319649=0Ahttp://www= =2Edeepseaplc.com mailto:sa...@de...=0ATelephone:+44(0)1723 8900= 99 Fax:+44(0)1723 893303=0A |