Gerhard Fiedler wrote: > float x; > int y, z; > > int temp; // Only needed to "trick" the compiler > temp = y / z; // into doing what I want. > x = temp; > > I don't like this anymore than I like the C style automatic promotions. As you said, yucc. For any of you that might be interested, Pascal solves this in a nice way by having two divide operators, "/" and "div". "/" always produces a floating point result, whether performed on integers or not. Div always does a integer divide, can only be performed on integers, and produces a integer result. This scheme provides both the necessary information to the compiler and good readability in the source code. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist