Python: Floating Point vs. Decimal
In our Arduino projects (programmed in C/C++), we often use a Raspberry Pi for collecting data, and the Python programming language. Math with floating point is inherently risky, because a decimal number does not store exactly in binary. in python,1.1+2.2 = 3.3000000000000003 not the 3.3 you might expect. we can force the result we are … Continue reading Python: Floating Point vs. Decimal
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed