| ??? 06/30/06 08:04 Read: times |
#119404 - use a union? Responding to: ???'s previous message |
Hoping I understood your question correctly:
use of a union:
union float_long_byte
{
float f;
unsigned long l;
unsigned byte b[4];
};
would allow you to access your float bytewise and as float and as long variable. You could use one of the floating point routines of SDCC as example on how a union can be used: http://svn.sourceforge.net/viewcvs.c...iew=markup Another option would be to use pointers? Greetings, Frieder |
| Topic | Author | Date |
| Integarting and disintgration of float | 01/01/70 00:00 | |
| Float to Byte | 01/01/70 00:00 | |
| use a union? | 01/01/70 00:00 | |
| Use a union, but ... | 01/01/70 00:00 | |
| Might not matter... | 01/01/70 00:00 | |
| Unwarranted assuption | 01/01/70 00:00 | |
| thanks a lot | 01/01/70 00:00 | |
| you can also try.... | 01/01/70 00:00 | |
again | 01/01/70 00:00 |



