This repository has been archived by the owner on Oct 4, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 97
Rounding / Number conversion #79
Labels
question
Further information is requested
Comments
that's a really good idea. I'll think about removing floats completely. They're costly |
I changed this in 1.6.0 (in dev branch) and removed all float pre-processing |
@proddy , thx |
@SpaceTeddy yup, its a bug. well spotted. The way I calculate a / 2 is just balls. I need to fix that later tonight. thanks for reporting. |
think its fixed now |
fixed! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I watched a roundig problems with temperatures: at certain temperatures there are steps up to the next integer. This behavior started when precision was changed to "2" with release 1.4.0
Histograms from Homeassistant:
As a quick fix I changed "precision" to "1" in function "_float_to_char" in ems-esp.ino. The smoother result is seen on the right side of the graphics.
Perhaps it would be better solution to avoid floating point calculations and use fixed point arithmetics. Values calculated from two bytes devided by 10 cannot have a higher precision then 0.1
My configuration: Buderus GB162 V3, UBA 3.5, BC10, RC35, RC20 RF
The text was updated successfully, but these errors were encountered: