> > To the original OP, In C, integer maths always results in the > > exact effect > > you're looking for. > > int v = 1133; > > int result = v / 12; > > // result == 961. > > > -----Original Message----- > From: Mccauley, Daniel H > > How does one extract the remainder though in such an operation. > Thanks > > Dan You cannot directly obtain the remainder from a division operation in C. You can however use the modulo operator to calculate the remainder in a sperate operation. int v = 1133; int remainder = v%12; Regards Mike ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= Any questions about Bookham's E-Mail service should be directed to postmaster@bookham.com. -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics