25.04.2024, 06:37
(25.04.2024, 06:02)tomnord Wrote: It kinda works, but the last decimal does not write odd numbers. example, I write 23.53, the value written is 23.52, the same with 23.55, ends up as 23.54.. It only happens when main number is above 20
2 byte floating point data type has lower precision with larger values. If you want higher precision then use 4 byte floating point if possible.