dhakeparag81
Full Member level 2
- Joined
- Jun 6, 2012
- Messages
- 142
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,298
- Location
- INDIA
- Activity points
- 2,469
hello there,
I wrote modbus application for pic81f87k22 cpu that support only integer value.
Might be you know that in float msb is signed 8 exponent and 23 mantisa i got that much of knowledge from documentation.
I want to write function in c that convert integer value to float and vice versa.
What is the procedure to convert float to integer?
Do you have any document on that or c code?
Please note that im not talking about type casting, because i want to transfer these data through modbus and other hand there may be any device which support modbus protocol with IEEE 754 for float.
I wrote modbus application for pic81f87k22 cpu that support only integer value.
Might be you know that in float msb is signed 8 exponent and 23 mantisa i got that much of knowledge from documentation.
I want to write function in c that convert integer value to float and vice versa.
What is the procedure to convert float to integer?
Do you have any document on that or c code?
Please note that im not talking about type casting, because i want to transfer these data through modbus and other hand there may be any device which support modbus protocol with IEEE 754 for float.