How to read 64 bit value

P

Thread Starter

PT

We are interfacing KWH meter and meter is giving data in 64 bit floating point (double) format. We can not read 64 bit as we are limited to read 32 bit floating point. I have trace out this value and compared their value in excel as follows using Modscan tool:<pre>
32 bit value (x), 64 bit value (y)
0, 0
0.5, 0.000031
1, 0.007813
1.5, 0.125
2, 2
2.5, 8
3, 32
3.5, 128
4, 512
4.5, 1024
5, 2048
5.5, 4096
6, 8192
6.5, 16384
7, 32768
7.5, 65536
8, 131072
8.5, 196608
9, 262144
9.5, 393216
10, 524288
10.5, 786432
11, 1048576
11.5, 1572864
12, 2097152
12.5, 3145728
13, 4194304
13.5, 6291456
14, 8388608
14.5, 12582912
15, 16777216</pre>
So my question is there way to use any formula so that we can convert 32 bit floating value to read as 64 bit value.
 
Top