"Ну и как же нам перекидывать строки ви числа?" спросите вы. Проверять каждый символ, очистив строку от лишних знаков и точек. Потом конвертить допустимые символы в числа и восстанавливать знак, дробную чусть и тд???
Самый быстрый способ это просто "попробовать" 😜
text = "-0.3"
try:
num = float(text)
except ValueError:
print('Dough!')
Всё остальное это уже парсинг и разбор символов для иных целей.
#basic
Bitcoin on #Bithumb suddenly dropped, trading over 10% below other markets.
Reports say a staff mistake during an airdrop sent 2,000 $BTC($133M) instead of a small KRW reward.
Some users sold it right away, causing the price to drop fast.
JUST IN : 💰🚨Bitcoin on #Bithumb suddenly dropped, trading over 10% below other markets.
Reports say a staff mistake during an airdrop sent 2,000 $BTC($133M) instead of a small KRW reward.
Some users sold it right away, causing the price to drop fast.
➖➖➖➖➖➖➖➖➖
📣@cryptonewstel
✨Vip join⭐️
🚨 DWF Labs has deposited all 170K $CYBER to #Bithumb at $8.6 on average ($1.46M) in 7 transactions over the past 24 hours.
➡️ DWF Labs will earn an estimated profit of $697K (+91.1%) from $CYBER if truly sold just now.
👉 More details: https://platform.spotonchain.ai/signal-details/dwf-labs-closed-the-first-cyber-deal-for-great-profit-516
👉 Visit our discord: https://discord.com/invite/Xh7cReej7n