Ранее я уже упоминал о другой фишке из ˍˍfutureˍˍ , это оператор деления.
from __future__ import division
Суть проста. Раньше сложность типа данных результата поределялась типом самого сложного операнда.
Например:
int/int => int
int/float => float
В первом случае оба операнда int, значит и результат будет int. Во втором float более сложный тип, поэтому результат будет float.
Если нам требуется получить дробное значение при делении двух int то приходилось форсированно один из операндов конверировать в float.
12/float(5) => float
Но с новой "философией" это не требуется. В Python3 "floor division" заменили на "true division" а старый способ теперь работает через оператор "//".
>>> 3/2
1.5
>>> 3//2
1
То есть теперь деление int на int даёт float если результат не целое число.
В классах теперь доступны методы __floordiv__() и __truediv__() для определения поведения с этими операторами.
Данный переход описан в PEP238.
#pep#2to3#basic
#The_Science🇺🇸📕[PDF]⬇️
4 #December2025
#Weekly_Magazines
For learning, for free(dom).
@backupofmagazines
This issue explores a century of quantum mechanics, where breakthroughs in quantum simulators, chemistry modeling, and information hardware illustrate how #QuantumTech and #AI innovation are reshaping modern science. As researchers revisit the Schrödinger equation’s legacy, new discoveries in DNA repair, materials design, and synthetic biology highlight cross-disciplinary shifts fueled by #FutureScience trends. With debates on #SciencePolicy and global collaboration, the issue captures a moment when #ResearchInnovation accelerates faster than ever, redefining both technology and our understanding of reality.
Recent Funding Rounds Overview
🔍Funding Highlights:
- Edera: $15M on Feb 25, 2025. Secure products launch. Learn more
- Zhongjiang Keyi: $13.83M on Feb 24, 2025. Nanjing's new material tech firm. Learn more
- Cholesgen: $13.83M on Feb 24, 2025. Innovating biopharmaceuticals for chronic diseases. Learn more
- Magdrive: $10.50M on Feb 25, 2025. High-power propulsion system for space. Learn more
- Arsenale Bioyards: $10M on Feb 25, 2025. Economical biomanufacturing through precision fermentation. Learn more
- Paradox Immunotherapeutics: $10M on Feb 25, 2025. Focused on rare disease treatments. Learn more
- BitDCA: $7.99M on Feb 24, 2025. New cryptocurrency distribution method. Learn more
- Dametis: $7.33M on Feb 21, 2025. Software for environmental performance challenges. Learn more
- QT Sense: $6.29M on Feb 25, 2025. Quantum sensing tech for biomedical research. Learn more
- Floodbase: $5M on Feb 20, 2025. AI platform for flood risk insurance. Learn more
#Funding#Edera#ZhongjiangKeyi#Cholesgen#Magdrive#ArsenaleBioyards#ParadoxImmunotherapeutics#BitDCA#Dametis#QTSense#Floodbase#Biotech#AI#Crypto#SpaceTech#Pharma#Innovation#EnvironmentalTech#QuantumTech#Biomanufacturing#RiskManagement