Hi. I'v been following this, but there is one thing I don't understand (lack och English knowledge, I'm sure), Is one "Tenths of Inches" equal to 10" or 0.1" ? *If* it's equal 0.1", how can it be of any interest, if the original integer is in "integer" inches ? Jan-Erik. -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Hulatt, Jon Sent: den 4 november 2003 19:02 To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: How to Divide 16-Bit number by 12 and display just who le number ? ? PICC Olin, You're misunderstanding the ambiguous wording of the OP. Read in conjunction with the rest of his post, you can see than he means that each integer represents an inch, to a maximum bound of 12,000 inches. Jon -----Original Message----- From: Olin Lathrop To: PICLIST@MITVMA.MIT.EDU Sent: 04/11/2003 12:32 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 > 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 > 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 -- 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 -- 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