Ранее я уже упоминал о другой фишке из ˍˍ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
🛎#FREESIGNAL
Make a LONG/BUY ORDER on #BTC/USDT from 80100 on Futures
Leverage - 5x - 10x - 25x - 50x
👁🗨Contact @cripexperts to enter the premium group & trade with perfect targets & stop loss levels
🚨#FREESIGNAL🚨
#BTC/USDT – LONG/BUY
📉 Entry: $92,400
📊 Leverage: 5x /10x /25x / 50x
📍Platform: Futures
🔥 This is a free trade idea — Premium members get full TP/SL levels and real-time updates!
💬 DM @cripexperts to join the Premium Group
✅ Trade smart. Trade with confidence.
🚨#FREESIGNAL🚨
#BTC/USDT – SHORT/SELL
📉 Entry: $91,350
📊 Leverage: 5x /10x /25x / 50x
📍Platform: Futures
🔥 This is a free trade idea — Premium members get full TP/SL levels and real-time updates!
💬 DM @cripexperts to join the Premium Group
✅ Trade smart. Trade with confidence.
🛎#FREESIGNAL
Make a LONG/BUY ORDER on #BTC/USDT from 80100 on Futures
Leverage - 5x - 10x - 25x - 50x
👁🗨Contact @primemod to enter the premium group & trade with perfect targets & stop loss levels
🛎#FREESIGNAL
Make a LONG/BUY ORDER on #BTC/USDT from 68640 on Futures
Leverage - 5x - 10x - 25x - 50x
👁🗨Contact @primemod to enter the premium group & trade with perfect targets & stop loss levels
🚨#FREESIGNAL🚨
#BTC/USDT – LONG/BUY
📉 Entry: $92,400
📊 Leverage: 5x /10x /25x / 50x
📍Platform: Futures
🔥 This is a free trade idea — Premium members get full TP/SL levels and real-time updates!
💬 DM @primemod to join the Premium Group
✅ Trade smart. Trade with confidence.
🚨#FREESIGNAL🚨
#BTC/USDT – SHORT/SELL
📉 Entry: $91,350
📊 Leverage: 5x /10x /25x / 50x
📍Platform: Futures
🔥 This is a free trade idea — Premium members get full TP/SL levels and real-time updates!
💬 DM @primemod to join the Premium Group
✅ Trade smart. Trade with confidence.
🔅BITCOIN Will Go Down From Resistance! Sell!📉
- - - - - - - -
Please, check our technical outlook for 📊BITCOIN.
The market is approaching a key horizontal level 78,161.73.
Considering the today's price action, probabilities will be high to see a movement to 77,165.90.
- - - - - - - -
#freesignal#bitcoin
- - - - - - - -
🌐Free Copy Trading: Link
📲Join VIP via Bot:Link
❓Official Contact:@signalprovidercontact
🔅BITCOIN Will Go Lower From Resistance! Sell!📉
- - - - - - - -
Please, check our technical outlook for 📊BITCOIN.
The market is trading around a solid horizontal structure 73,205.33.
The above observations make me that the market will inevitably achieve 68,619.32 level.
- - - - - - - -
#freesignal#bitcoin
- - - - - - - -
🌐Free Copy Trading: Link
📲Join VIP via Bot:Link
❓Official Contact:@signalprovidercontact
🔅BITCOIN Will Grow! Buy!📈
- - - - - - -
Here is our detailed technical review for 📊BITCOIN.
The market is on a crucial zone of demand 69,527.38.
The oversold market condition in a combination with key structure gives us a relatively strong bullish signal with goal 70,433.22 level.
- - - - - - - -
#freesignal#bitcoin
- - - - - - - -
🌐Free Copy Trading: Link
📲Join VIP via Bot:Link
❓Official Contact:@signalprovidercontact
🔅BITCOIN Will Go Up! Buy!📈
- - - - - - -
Here is our detailed technical review for 📊BITCOIN.
The price is testing a key support 69,833.99.
Current market trend & oversold RSI makes me think that buyers will push the price. I will anticipate a bullish movement at least to 71,850.50 level.
- - - - - - - -
#freesignal#bitcoin
- - - - - - - -
🌐Free Copy Trading: Link
📲Join VIP via Bot:Link
❓Official Contact:@signalprovidercontact
🔅BITCOIN Is Very Bearish! Sell!📉
- - - - - - - -
Please, check our technical outlook for 📊BITCOIN.
The market is trading around a solid horizontal structure 70,229.88.
The above observations make me that the market will inevitably achieve 69,008.56 level.
- - - - - - - -
#freesignal#bitcoin
- - - - - - - -
🌐Free Copy Trading: Link
📲Join VIP via Bot:Link
❓Official Contact:@signalprovidercontact