Floating point or fixed point routines?
On Mon, 16 Apr 2001 08:56:07 MDT, you wrote:
>What's the difference between floating point and fixed point?
Floating point can represent a large range of numbers, but with less
precision, all other things being equal (i.e. the number of bytes
>When do you use floating point routines? Only when you ABSOLUTELY have to, especially on a processor like a PIC
with limited RAM and code space - Floating point code is usually
memory and processor-time hungry. Embedded apps rarely have the need
for floating point's range, as real-workd values don't often cover a
wide enough range to need
>When do you use fixed point
When you want to reprent a fractional value. You have to decide where
to put the point, which will depend on your appliction.
There is actually almost no difference between integers and fixed
point numbers in terms of code - the point is where you think you need
it - the precessor often doesn't know or care.
http://www.piclist.com hint: To leave the PICList
In reply to: <email@example.com>
See also: www.piclist.com/techref/microchip/devices.htm?key=pic
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the