Por qué los Bancos ODIAN Python (y tú deberías saberlo)

Have you ever noticed Python incorrectly adding 0.1 + 0.2? In this video, we break down the infamous floating-point error and explain why this small mathematical flaw is the critical reason why banks and financial systems avoid using the float data type for handling money. We analyze how computers interpret decimals in binary under the IEEE 754 standard, compare the precision between Python and C++, and show you the correct solution: using integers or libraries like Decimal (COBOL-style) so you don't lose a single penny in your software development. ⏱️ Key Points (Timestamps) 00:00 The Mathematical Error When Paying at OXXO 00:57 What is a Floating-Point Error in Programming? 01:13 Demonstration: Why Python Incorrectly Adds 0.1 + 0.2 01:58 The IEEE 754 Standard and Financial Systems 02:22 Comparison: Precision in Python vs. C++ 02:48 Why Computers Fail with Decimals (Binary Explained) 03:24 Banking Solution: Using COBOL and Integers 04:16 Decimal Library and Data Types in Python 04:40 Conclusion: When to Use Python and When Not to Contact: [email protected] #python #cplusplus #computerscience