data analysis

xiaoxiao2021-03-05  26

How do you use C to implement it below? Help herole! ! ! 43 71 73 88 (16) (data collected from the meter, required to convert to float, Double data) The rule of transformation is: 43 71 73 88 (16) 0,100 0011 0,111 0001 0111 0011 1000 1000 A series of 3 parts (comma spacer) symbols: 0 Index: 10000110 Malid (excluding hint bits): 111 0001 0111 0011 1000 Add a hint bit to: 1.111 0001 0111 0011 1000 1000 Conversion to After decimal index: 134 (10000110) minus 127 134-127 = 7 mantissa: 1.111 0001 0111 0011 1000 to the right moving index bit (7 bits) to 1111 0001. 0111 001111000 1000 integer part: 241 (1111 0001) ) Diviles: 29576 (0111 0011 1000) The result is 241.45129 to be divided by 16576/65536 = 0.45129 in 2.

============================================================================================================================================================================================================= ==========================

#include using namespace std; int main () {Int f; cout << "Please enter your data" << Endl; cin >> HEX >> F; float * x; x = (float *) & f Cout.Precision (8); cout << * x << Endl; system ("pause"); return 0;}

转载请注明原文地址:https://www.9cbs.com/read-35645.html

New Post(0)