On Wed, 4 Jun 2003 13:26:16 +0100, you wrote: >On Wed, 4 Jun 2003 08:18:27 -0400, you wrote: > >>I'm in the process of changing all my floating points to fixed point >>numbers, but there are a few I need to stick with the >>floating point. >> >>Anyways, I have one particular floating point number which needs to be >>broken down to the following format to be >>displayed on an LCD screen: >> >>XXXX feet, XX.X inches >Just because it needs to be displayed with a DP doesn't mean you need = FP.=20 >A little extra code to split it up for display will probably greatly = outweigh the code savings from >not using FP in calculations.=20 >For example if you work in 24.8 fixed point in feet, this gives a range = of 16 million feet with a >resolution of 1/256 inch.=20 oops, that should be 1/256 feet, or about 0.05 inch. Of course unless = you're navigating a spacecraft you probably don't need a range of 16 million feet so just move the point= to where you get enough resolution.=20 -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body