| ??? 02/17/04 04:07 Read: times |
#64917 - RE: floating point numbers _ Rob Responding to: ???'s previous message |
Hello Rob,
That was quite an useful information for me - I have never used FP with 8051. Like for instance if I need to display the result of 25/8 upto two decimal places, I just do integer calculations : * 25 x 100 = 2500 * 2500 / 8 = 312 * Display it as 3.12 I am aware of the limitations in such a scheme but till date have been able to manage without problems. You said, "The 32-bit IEEE-754 FP representation (the 'standard' for most 8051 C compilers) has a 23-bit fraction, an 8-bit exponent an a sign bit. This gives a range of ±1.2e-38 to ±3.4e+38." With the bit allocation as above can you just elaborate as to how the given range was arrived at ? Would also request links to any good documentation as applied to FP with 8bit MCUs? Thanks for the help. Raghu |
| Topic | Author | Date |
| floating point numbers | 01/01/70 00:00 | |
| RE: floating point numbers | 01/01/70 00:00 | |
| RE: floating point numbers | 01/01/70 00:00 | |
| RE: floating point numbers | 01/01/70 00:00 | |
| RE: floating point numbers _ Rob | 01/01/70 00:00 | |
| RE: floating point numbers _ Rob | 01/01/70 00:00 | |
| RE: floating point numbers _ Rob | 01/01/70 00:00 | |
| RE: floating point numbers _ Michael | 01/01/70 00:00 | |
| RE: floating point numbers _ Rob | 01/01/70 00:00 | |
| RE: why floating point numbers? | 01/01/70 00:00 | |
| RE: floating point numbers | 01/01/70 00:00 | |
| RE: floating point numbers | 01/01/70 00:00 | |
| RE: floating point numbers | 01/01/70 00:00 | |
| Lookup Table | 01/01/70 00:00 | |
| RE: floating point numbers | 01/01/70 00:00 | |
| RE: floating point numbers | 01/01/70 00:00 | |
| RE: floating point numbers | 01/01/70 00:00 | |
| Which rubbish ? | 01/01/70 00:00 | |
| RE: floating point numbers | 01/01/70 00:00 | |
RE: floating point numbers | 01/01/70 00:00 |



