I think that he mean to say that he can have between 0 - 12000 inches, however, if that't the case, I don=92t understand how would he have = tenths of inches...? BSTRGRD Mauricio Jancic Janso Desarrollos Microchip Consultant (54) - 11 - 4542 - 3519 -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of Olin Lathrop Sent: Martes, 04 de Noviembre de 2003 14:32 To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: How to Divide 16-Bit number by 12 and display just whole number ? ? PICC Mccauley, Daniel H wrote: > In my application (which I'm using PICC C), I have a 16-Bit integer=20 > register which has a range of 0 to 12000 is each number is one inch. > > For display on an LCD, I want to break up this number into the=20 > following components: > > Feet, Inches, and Tenths of Inches Something isn't right since you can't ever have a whole foot in a 16 bit integer if 12000 represents one inch. The most you can get is 5.46 inches. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.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 --=20 Incoming mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.197 / Virus Database: 260.2.8 - Release Date: 03/11/2003 =20 --=20 Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.197 / Virus Database: 260.2.8 - Release Date: 03/11/2003 =20 -- 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