Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 28th November 2007, 02:50 AM   (permalink)
Default Floating Point math.

Hello guys.
I was reading about floating point math, but I actually didn't understood.
Could anyone please explain me what its all about and what is the difference with integer math?
And please explain as if talking with an ignorant person..

PS: Please don't link me to Wikipedia's page about this, I didn't understood from Wiki.

Thanks in advance.
__________________
The best e-book
Voltboy is offline  
Reply With Quote
Old 28th November 2007, 03:01 AM   (permalink)
Default

Do you still have the box that your computer came in?

Seriously, there has been so much written on the web that you should be able to find something that you do understand. Keep looking and when you have a specific question, post it here.

Mike.
Pommie is offline  
Reply With Quote
Old 28th November 2007, 03:56 AM   (permalink)
Default

Quote:
Originally Posted by Voltboy
Hello guys.
I was reading about floating point math, but I actually didn't understood.
Could anyone please explain me what its all about and what is the difference with integer math?
And please explain as if talking with an ignorant person..

PS: Please don't link me to Wikipedia's page about this, I didn't understood from Wiki.

Thanks in advance.
To simplify, if the numbers being calculated contains fractions then floating point math is preferred. If no fractions are involved then integer math is simpler, faster and requires less memory. There are methods to utilize fractions with integer math, but they are somewhat awkward.

Floating point representation and algorithms can be somewhat complex for newcomers to understand at the bit level (precision, mantissa & exponent) so maybe that's really your question

Lefty
__________________
Measurement changes behavior
Leftyretro is offline  
Reply With Quote
Old 28th November 2007, 05:36 AM   (permalink)
Default

I think what Mike is trying to suggest, is that you ask a question or state a problem, rather than for info that's already out there.
Quick overview of what you need to know:
- Integers are whole numbers.
- Floating point is like a mobile decimal point. It's akin to what your calc display uses (only in binary). So you see numbers like 0.001 or 1.23 E 26 - ie the decimal point can move around. Except it's a binary point.
- If this still doesn't make sense, look up: binary, integer, rational, real numbers, fixed-point arithmetic, floating-point arithmetic (in about that order).
matc is offline  
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
division include floating point... meera83 Micro Controllers 4 17th June 2007 04:20 PM
Looks simple enough. But..... hjl4 Micro Controllers 3 29th January 2007 11:17 AM
Can PIC16F877 do floating point math? stevenlkz Micro Controllers 5 12th June 2005 04:59 PM
Microchip fixed point math library -16CXXX family atferrari Micro Controllers 10 19th May 2005 08:48 AM
ya mari_69 Micro Controllers 4 7th June 2004 01:29 PM



All times are GMT. The time now is 07:00 PM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.