Doc. # 1-0000114
Date Updated 01-22-2004 Date Created 07-27-2000
Document Type Knowledge Base Related OS
Related Product ADAM-5000/CAN
How to convert a floating point number from the message of 5000/CAN?
Solution:
Please refer to the following program: #include #include #include main( ) { void *vPtr1; char k[4]; k[0] = 0x00; k[1] = 0x00; k[2] = 0xA0; k[3] = 0x40; vPtr1=&k[0]; cout <<"Value Convert 1= "<<*((float*)vPtr1) <<"\n"; getch(); }