This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Splitting and merging values
#5
(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.
Reply


Messages In This Thread
Splitting and merging values - by tomnord - 24.04.2024, 12:50
RE: Splitting and merging values - by tomnord - 25.04.2024, 06:02
RE: Splitting and merging values - by admin - 25.04.2024, 06:37

Forum Jump: