Is the 4 byte double a limitation of the ESP8266 boards, or is it just that B4R doesn't have an 8 byte floating point data type?
I'm working on a project where I have to monitor large quantities of liquids (10,000 litres +) & have to have resolution down to the millilitre level, however I'm finding that with the 4 byte double (or float) type available in B4R, I'm losing precision when I have to subtract millilitre quantities from large values. The result is that my increasing "used" counter gets out of sync with the decreasing "level" indicator. I don't see this issue with quantities less than 10,000 litres.
- Colin.
I'm working on a project where I have to monitor large quantities of liquids (10,000 litres +) & have to have resolution down to the millilitre level, however I'm finding that with the 4 byte double (or float) type available in B4R, I'm losing precision when I have to subtract millilitre quantities from large values. The result is that my increasing "used" counter gets out of sync with the decreasing "level" indicator. I don't see this issue with quantities less than 10,000 litres.
- Colin.