Code: Select all
Woonkamer Temperatuur: 21.200000762939Why is that?
Moderator: leecollings
Code: Select all
Woonkamer Temperatuur: 21.200000762939Short explanation:EddyG wrote: Sunday 07 June 2020 15:26 It seems that value's are converted to floats in a strange way.This value is in the database and display 21.2Code: Select all
Woonkamer Temperatuur: 21.200000762939
Why is that?
Long explanationbecause of the way the underlying platform handles floating point numbers, and ultimately with the inaccuracy you’ll always have when writing down numbers as a string of a fixed number of digits.
Users browsing this forum: No registered users and 1 guest