source=3D http://www.piclist.com/piclist/2004/08/22/145607a.txt? Robert Monsen says: > Typical C. Everything in an expression is promoted to the=20 > largest type in the expression before the operation.=20 >=20 You might be interested in=20 http://www.sxlist.com/techref/expeval2.asp=20 which is a minimal expression evaluator which tracks the actual width of = each part to ensure an exact answer. --- James Newton: PICList.com webmaster, former Admin #3 mailto:jamesnewton@piclist.com 1-619-652-0593 phone http://www.piclist.com/member/JMN-EFP-786 PIC/PICList FAQ: http://www.piclist.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads