В продолжение прошлого поста про цифры в мире строк.
Почему методы isdigit() и isnumeric() не определяют в строке float и отрицательные значения?
Дело в том, что эти методы работают с ЦИФРАМИ, то есть с единичным символом. А строка "-2" или "3.4" это уже ЧИСЛО. То есть не символ а значение, записанное несколькими символами.
Все озвученные методы проходятся по каждому символу строки и проверяют их индивидуально.
В юникоде есть символы цифр с точками "🄀⒈⒉⒊⒋⒌⒍⒎⒏⒐"
Каждая из них это ОДИН СИМВОЛ, поэтому он будет считаться цифрой
>>> '⒌'.isdigit(), '⒌'.isnumeric()
True, True
Но когда мы пишем это выражение в два символа ( 5+точка), то это не работает.
>>> '5.'.isdigit(), '5.'.isnumeric()
False, False
А еще есть такие символы
>>> '⑴⑵⑶⑷⑸'.isdigit()
True
>>> '🄁🄂🄃'.isdigit()
True
Но они не преобразуются в десятичные цифры
>>> '⒈'.isdecimal()
False
>>> '🄃'.isdecimal()
False
>>> '⑶'.isdecimal()
False
#basic
🚀 Back to Back Huge Profits are made in the Premium Group
🎯🎯#ALCH/USDT has covered all the target to give a Profit of 118% to all Premium Members
👁🗨Contact @futurechief to enter the Premium Futures & SPOT Group for daily gain
🚀🚀Raining Profits in the Premium Group
🎯🎯#ALCH/USDT has covered all the targets to give an amazing profit of 29% for all Premium Members
👁🗨Contact @futurechief to enter the premium group & make daily gains on Futures as well as Spot Market
🚀🚀 31% Profit on #ALCH/USDT for our Premium Members on Binance Futures/Bybit/OKXX/Kucoin/Bitget
✅✅ All target completed
👁🗨Contact @primemod to enter the Premium Group for high quality SPOT & FUTURES Signals
☑️☑️Below you will see the Futures Premium Signals Results for (03rd February 2026)
🚀#ALCH-USDT - 118% profit
🚀#BULLA-USDT - 2363% profit
👇Trades That Incurred Loss:
❌#HYPE-USDT - 40%
✅✅Net Profit = 2441% Profit
👇🏻Signals Summary
➕Total Signals Sent out - 03
✔️Profitable Signals - 02
✖️Total Signals Lost - 01
◼️Trade cancelled without being executed - 00
✅✅Net Profit - 2441% Profit
👁🗨Contact @futurechief to enter the most profitable Futures Premium Signal Group
☑️☑️Below you will see the Futures Premium Signals Results for (15th January 2026)
🚀#ALCH-USDT - 29% profit
🚀#XMR-USDT - 142% profit
🚀#DUSK-USDT - 23% profit
👇Trades That Incurred Loss:
❌
✅✅Net Profit = 194% Profit
👇🏻Signals Summary
➕Total Signals Sent out - 03
✔️Profitable Signals - 03
✖️Total Signals Lost - 00
◼️Trade cancelled without being executed - 00
✅✅Net Profit - 194% Profit
👁🗨Contact @futurechief to enter the most profitable Futures Premium Signal Group