Telegram Group & Telegram Channel
👩‍💻 Что выведет этот код?

A) True
B) False
C) Error
D) Другое

❗️ Ответ: B (False). Объяснение:

🔍 Числа с плавающей точкой представлены в двоичном формате, и это приводит к некоторым ошибкам округления. 0,2 хранится как 0,200000111, 0,1 хранится как 0,100000055, поэтому при их сложении 0,3 хранится как 0,30000000044. Но само 0,3 хранится как 0,299999.

@python_testit
Please open Telegram to view this post
VIEW IN TELEGRAM



tg-me.com/python_testit/1101
Create:
Last Update:

👩‍💻 Что выведет этот код?

A) True
B) False
C) Error
D) Другое

❗️ Ответ: B (False). Объяснение:

🔍 Числа с плавающей точкой представлены в двоичном формате, и это приводит к некоторым ошибкам округления. 0,2 хранится как 0,200000111, 0,1 хранится как 0,100000055, поэтому при их сложении 0,3 хранится как 0,30000000044. Но само 0,3 хранится как 0,299999.

@python_testit

BY Python tests




Share with your friend now:
tg-me.com/python_testit/1101

View MORE
Open in Telegram


Python tests Telegram | DID YOU KNOW?

Date: |

At a time when the Indian stock market is peaking and has rallied immensely compared to global markets, there are companies that have not performed in the last 10 years. These are definitely a minor portion of the market considering there are hundreds of stocks that have turned multibagger since 2020. What went wrong with these stocks? Reasons vary from corporate governance, sectoral weakness, company specific and so on. But the more important question is, are these stocks worth buying?

Python tests from vn


Telegram Python tests
FROM USA