The title speaks for itself: How to convert IEEE-11073 16-bit SFLOAT to simple float in Java?
The title speaks for itself: How to convert IEEE-11073 16-bit SFLOAT to simple float
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use bit shifting. extract the sign, exponent and mantissa and shift these so they are in float format. You may need to correct for Infinity and NaN.
As @PretiP’s answer points out the exponent is base 10 so you would need to multiply or divide by a power of 10 to get the final value.