Ранее я уже упоминал о другой фишке из ˍˍ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
#MATIC/USDT analysis -
#Matic is trading above the support zone and forming a rejection candle. It is expected to bounce off from there and test new highs.
TF : 1D
Entry : $0.5148
Target : $0.5740 & $0.6198
SL : $0.4579
#MATIC/USDT ANALYSIS
MATIC has broken out of a falling wedge pattern with strong volume. It is currently undergoing a retest, and a successful retest would confirm a bullish reversal. However, if the retest fails, the pattern's validity will be nullified.
💰#MATIC is losing bottom of the bullish channel on 1H Time frame,in the case of breakdown,it will drop until the Green zone
📉
❄️@signal_bitcoins❄️
❄️@Shadow_support0o❄️
💰#MATIC has a Bullish flag pattern on Weekly time frame,now price is trying to break up the flag pattern👀
We expect another bullish trend will start after breakout and pullback💎
❄️@signal_bitcoins❄️
❄️@Shadow_support0o❄️
💰#MATIC created a symmetrical triangle pattern successfully on Weekly time frame,we expect a huge drop on this chart
📉
Also we will buy it around $0.30 - $0.20✅
❄️@signals_bitcoin_crypto❄️
❄️@Shadow_support0o❄️
💰#MATIC price is near the bottom of bullish channel on 8H Time frame,if saved this area will have good pump again, atleast until ceiling of this pattern 💎
❄️@signals_bitcoin_crypto❄️
❄️@Shadow_support0o❄️
💰#MATIC is trying to break up the Supply zone,we will wait for a pullback to the broken supply then will buy and hold✅
❄️@signals_bitcoin_crypto❄️
❄️@Shadow_support0o❄️