В продолжение прошлого поста про цифры в мире строк.
Почему методы 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
Project Infinity X - Official | A14| Nothing Phone 2 (Pong)
📝 Details:
- Version: v1.6
- Device: #Pong
- Released: 25/10/24
⬇️ Download: Here
📖 Changelogs: Device | Source
📔 Instructions: Here
🎄 Device tree : Here
🖼 Screenshot : Here | Here
🆘 Support: Device
🏷 Tags: #AOSP#ROM#InfinityX#U#QPR3#Official
✍️ Note:
• Read changelogs
• OTA available
• Base firmware 2.6.0 is recommended
• Dirty flash possible from previous build
• Based on Qpr3 September Security Patch
• Dolby Atmos available
• Flash meteoric kernel for KSU support
• Nik gapps recommend for vanilla version
🏆 Credits:
- Chandu Dyavanapelli for DT Base
- Hellboy for kernel tree
- Fabian and Hellboy for Glyph Implementation
👤 Maintainer: @Ghosutox
🔔 Updates: @NothingPhone2Updates
🐙 Chat: @NothingPhone2
Project Infinity X - Official | A14| Nothing Phone 2 (Pong)
📝 Details:
- Version: v1.5
- Device: #Pong
- Released: 11/09/24
⬇️ Download: Here
📖 Changelogs: Device | Source
📔 Instructions: Here
🎄 Device tree : Here
🖼 Screenshot : Here | Here
🆘 Support: Device
🏷 Tags: #AOSP#ROM#InfinityX#U#QPR3#Official
✍️ Note:
• Read changelogs
• Base firmware 2.6.0 is recommended
• Dirty flash possible from previous build
• Based on Qpr3 September Security Patch
• Dolby Atmos available
• Flash meteoric kernel for KSU support
• Nik gapps recommend for vanilla version
🏆 Credits:
- Chandu Dyavanapelli for kernel & DT Base
- Fabian and Hellboy for Glyph Implementation
👤 Maintainer: @Ghosutox
🔔 Updates: @NothingPhone2Updates
🐙 Chat: @NothingPhone2
Project Infinity X - Official | A14| Nothing Phone 2 (Pong)
📝 Details:
- Version: v1.4
- Device: #Pong
- Released: 27/08/24
⬇️ Download: Here
📔 Instructions: Here
🎄 Device tree : Here
🖼 Screenshot : Here | Here
🆘 Support: Device
🏷 Tags: #AOSP#ROM#InfinityX#U#QPR3#Official
✍️ Note:
• Initial official release
• Base firmware 2.6.0 is recommended
• Clean flash mandatory
• Based on Qpr3 August Security Patch
• Dolby Atmos available
• Flash meteoric kernel for KSU support
• Nik gapps recommend for vanilla version
🏆 Credits:
- Chandu Dyavanapelli for kernel & DT Base
- Fabian and Hellboy for Glyph Implementation
👤 Maintainer: @Ghosutox
🔔 Updates: @NothingPhone2Updates
🐙 Chat: @NothingPhone2