i am experiencing rounding issues in Domoticz
i send over a dummy device value without any decimals.
Does this mean is is converted to a rounded number(integer) or is it still a floating number without decimals?
if so can i change this by adding a formula?
Are dummy device numbers still floating point
Moderators: grovkillen, Stuntteam, TD-er
Re: Are dummy device numbers still floating point
The values stored in a dummy plugin are indeed of type float.
So this means that the precision is roughly 6 - 7 decimal digits, regardless of where the decimal point is placed.
You can format the output to contain 0 decimals, so the output will then be processed without decimals after the dot.
But it will not give you extra precision.
Meaning storing 12345678 may not result exactly this number.
So this means that the precision is roughly 6 - 7 decimal digits, regardless of where the decimal point is placed.
You can format the output to contain 0 decimals, so the output will then be processed without decimals after the dot.
But it will not give you extra precision.
Meaning storing 12345678 may not result exactly this number.
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 127 guests