24.06.2019, 20:42
Hi,
how correctly make math for my power meter device's data:
I receive 2 byte sighned integer 2083 kWh. But real is 208.3kWh. If I use value myltiplayer for modbus mapper I have only integer part - 208 kWh.
If I just divide 2083 /10 anyway I have only 208.
So how correctly convert value to floating point to have integer and 2 digits after point for more accurate power metering data??
BR,
Alex
how correctly make math for my power meter device's data:
I receive 2 byte sighned integer 2083 kWh. But real is 208.3kWh. If I use value myltiplayer for modbus mapper I have only integer part - 208 kWh.
If I just divide 2083 /10 anyway I have only 208.
So how correctly convert value to floating point to have integer and 2 digits after point for more accurate power metering data??
BR,
Alex