Ранее я уже упоминал о другой фишке из ˍˍ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
#LINA/USDT analysis :
#LINA is currently in a downtrend, consistently making lower lows while trading below the 200 EMA. The price is now retracing and is anticipated to test the resistance zone before likely resuming its bearish momentum.
TF : 2H
Entry : $0.004192
Target : $0.003430
SL : $0.004597
#LINA/USDT analysis :
#LINA is presently experiencing a pullback, creating a potential short trade opportunity. The price is currently being rejected from the resistance zone after the breakdown and retest. It is probable that it will test the previous swing low.
TF : 15min
Entry : $0.00456
Target : $0.00447
SL : $0.00462
#LINA hit 83🎯
4th target achieved in just 13 hours✅✅✅✅
One more huge profit 33.33%🤑💰🤑
👉 Still thinking? The more you wait more you lose profit
☎️ Contact @FutureExpertAdmin for premium membership and grab next breakout signal
#LINA hit 83🎯
4th target achieved in just 13 hours✅✅✅✅
One more huge profit 33.33%🤑💰🤑
👉 Still thinking? The more you wait more you lose profit
☎️ Contact @FutureExpertAdmin for premium membership and grab next breakout signal
#LINA result
1st target achieved in just 25 minutes✅
One more quick profit 5.2%💰🤑
👉 More quick profit signals available in premium channel. Hurry up 🏃♂👇
☎️ Contact @FutureExpertAdmin
#LINA compressed between the trendline and support zone on Weekly time frame, waiting for a Bullish momentum
📈
❄️@signals_bitcoin_crypto❄️
❄️@Shadow_support0o❄️