dear friends
I receive data from a power meter and it is a 4 bytes IEEE 754 floating point number. but I need to convert those bytes to my C compilers float type .
thanks for fast reply. as you said I try to write them in a 32 bit memory word.
Are you saying Peter's answer did not work?
The only other twist I can think of is if your power meter is big-endian and your computer is little-endian; or vice versa. See
http://en.wikipedia.org/wiki/Endianness
If that is the case, then instead of copying the four bytes from memory in order, you should reverse the byte order. e.g.
source+0 -> dest+3
source+1 -> dest+2
source+2 -> dest+1
source+3 ->dest+0
in order for the destination computer to properly interpret the IEEE 754 format.
I start working in electricity price forecasting. if you know or you have any paper about it please let me know. thank you.
09 October 2015 2,414 4 View
I have a matrix that is about load and price of electricity in one year. I want to know correlation between price and load. thank you
09 October 2015 875 2 View
What is photovoltaics (solar electricity) or "PV"
05 June 2015 7,124 5 View
If the detection range is in ng/ml but the reference range is in ug/ml for a molecule or protein in serum or plasma .how to dilute and what is the initial volume to be taken for quantitative analysis
02 March 2021 7,670 3 View
Hello everyone! Is a normal value 295.8 ug/ul for cDNA? If not what does it mean? Where is the mistake? The measurement was done with nano drop. Thank you!
09 February 2021 6,202 1 View
i used to control EHO+ANFIS to MRPID to Landsman converter for bldc drive i got 7% but some of them are telling IEEE standards are < 5% is it correct for Drives ?
07 February 2021 5,892 1 View
i want to do thresholding by segregation of water areas from non water areas for that i am using model maker in ERDAS but i am unable to get the threshold limit value of my image.
26 January 2021 8,277 1 View
14 January 2021 8,086 37 View
In one of my articles "The need for a values-based university curriculum" https://www.universityworldnews.com/post.php?story=2019092415204357 I propose that higher education should adopt a...
14 January 2021 2,304 95 View
Ethics and moral values have always being an essential part of teaching and scientific research. How do you teach and evaluate these essential subjects in your daily interaction with students?
23 December 2020 5,058 7 View
I have some DMA curves of PC+ABS from different batches. The PC loss modulus peak is fairly consistent but one batch has a peak value 10degC lower than the rest. Another peaks at the normal value,...
06 December 2020 809 2 View
While doing my research work, I have noticed that the D- dimer levels of normal animals (dogs) are given in different ranges in different publications. Is there any variation occuring in d dimer...
08 November 2020 296 1 View
I want to test for correlation between dataset A and dataset B (both have numerical data). For example, dataset B consist of hemoglobin values which have different reference ranges for male and...
20 October 2020 9,550 6 View