By thenths don=92t you mean inches/10? Or I miss understud the language? = 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 Veronica Merryfield Sent: Martes, 04 de Noviembre de 2003 15:14 To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: How to Divide 16-Bit number by 12 and display just who le number ? ? PICC I thought it was 1200 inches, given 12000 was mentioned as was tenths so that would be a max of 100 feet in tenths of inches. -- Veronica Merryfield, somewhere in Cambridgeshire, UK "Constructive laziness is the root of all good engineering" "The best things in life aren't things" Do not wish to be anything but what you are, and try to be that perfectly. - St. Francis De Sales www.dunrunnin.co.uk www.greyhoundgap.com www.yadvashem.org.il - Everyone should visit ----- Original Message ----- From: "Hulatt, Jon" To: Sent: Tuesday, November 04, 2003 6:01 PM 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=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=20 > bit integer if 12000 represents one inch. The most you can get is=20 > 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=20 > (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=20 > (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 --=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