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,497 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 993 2 View
What is photovoltaics (solar electricity) or "PV"
05 June 2015 7,212 5 View
Our experimental design was a 2 (social value orientation: pro-social, pro-self) * 3 (grade: 4th, 5th, 6th) * 3 (peer comparison: fair distribution, mildly unfair, extremely unfair) repeated...
03 June 2024 8,898 0 View
I have fit a Multinomial Logistic Regression (NOMREG) model in SPSS, and have a table of parameter estimates. How are these parameter estimates used to compute the predicted probabilities for each...
11 May 2024 905 6 View
hi there . i'm currently working on a thesis which involves designing a fast nonsingular terminal sliding-mode controller for attitude control of a quadrotor. the outputs of sliding mode...
20 April 2024 425 2 View
It is recently reported as a case study in a medical journal that Sodium level in blood falls down to 119 mEq/L leading to hyponatrenia. Will anybody suggest if it is so what precautions can be...
04 March 2024 2,059 1 View
What is the normal range of Estrogen in female rats blood?
13 February 2024 2,901 0 View
Hello every body, Can you please help me I synthesized silver nanoparticles using the green synthesis method, but its absorption peak showed 350, while it should be around 430 nm. I also observed...
26 January 2024 3,481 2 View
before normalization i get 5 crips value of criteria that be c1= -0.892 c2=0.005 c3=0.067 c4=-0.076 c5=0.070 How i do normalization ? can i use the same formula that i use while getting all...
01 January 2024 7,558 0 View
As part of my current investigation, I am keen to understand the numerical value of the accepted heat threshold for arid climes. Could you kindly share your expertise on how to attain the...
10 November 2023 9,813 2 View
what is the normal range in case of cell lines?
28 October 2023 3,309 3 View
I extracted RNA from the animal tissues by Trizol and phenol technique. The A260/A230 and 260/280 ratio were sometime lower or higher than a normal range. Do this make problems for my real-time...
21 October 2023 1,042 3 View