В продолжение прошлого поста про цифры в мире строк.
Почему методы 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
#Lassafeverinfo
Our latest Lassa Fever Situation Report has been published on our website (week 23).
This week's situation report and that of previous weeks can be downloaded via https://ncdc.gov.ng/diseases/sitreps/?cat=5&name=An%20update%20of%20Lassa%20fever%20outbreak%20in%20Nigeria
#Lassafeverinfo
Our latest Lassa Fever Situation Report has been published on our website (week 22).
This week's situation report and that of previous weeks can be downloaded via https://ncdc.gov.ng/diseases/sitreps/?cat=5&name=An%20update%20of%20Lassa%20fever%20outbreak%20in%20Nigeria
#Lassafeverinfo
Our latest Lassa Fever Situation Report has been published on our website (week 6).
In this reporting week, a total of 68 confirmed cases were recorded.
This week's situation report and that of previous weeks can be downloaded via https://ncdc.gov.ng/diseases/sitreps/?cat=5&name=An%20update%20of%20Lassa%20fever%20outbreak%20in%20Nigeria
#Lassafeverinfo
Our latest Lassa Fever Situation Report has been published on our website (week 4).
This week's situation report and that of previous weeks can be downloaded via https://ncdc.gov.ng/diseases/sitreps/?cat=5&name=An%20update%20of%20Lassa%20fever%20outbreak%20in%20Nigeria
#Lassafeverinfo
Our latest Lassa Fever Situation Report has been published on our website (week 2).
This week's situation report and that of previous weeks can be downloaded via https://ncdc.gov.ng/diseases/sitreps/?cat=5&name=An%20update%20of%20Lassa%20fever%20outbreak%20in%20Nigeria
#Lassafeverinfo
Our latest Lassa Fever Situation Report has been published on our website (week 49).
This week's situation report and that of previous weeks can be downloaded via https://ncdc.gov.ng/diseases/sitreps/?cat=5&name=An%20update%20of%20Lassa%20fever%20outbreak%20in%20Nigeria
In total for 2024, 1035 confirmed cases of #LassaFever have been recorded across 28 States in Nigeria.
🔗Download, read, and share our latest #LassaFever situation report via:
https://ncdc.gov.ng/diseases/sitreps/?cat=5&name=An%20update%20of%20Lassa%20fever%20outbreak%20in%20Nigeria
#LassaFeverInfo
In total for 2024, 1018 confirmed cases and 172 deaths of #LassaFever have been recorded across 28 States in Nigeria.
🔗Download, read, and share our latest #LassaFever situation report via:
https://ncdc.gov.ng/diseases/sitreps/?cat=5&name=An%20update%20of%20Lassa%20fever%20outbreak%20in%20Nigeria
#LassaFeverInfo
In total for 2024, 1005 confirmed cases of #LassaFever have been recorded across 28 States in Nigeria.
🔗Download, read, and share our latest #LassaFever situation report via:
https://ncdc.gov.ng/diseases/sitreps/?cat=5&name=An%20update%20of%20Lassa%20fever%20outbreak%20in%20Nigeria
#LassaFeverInfo
In this week's #LassaFever situation report, we provide a summary of the epidemiological situation and response activities in Nigeria.
🔗Download, read, and share via
https://ncdc.gov.ng/diseases/sitreps/?cat=5&name=An%20update%20of%20Lassa%20fever%20outbreak%ll20in%20Nigeria
#LassaFeverInfo
In this week's #LassaFever situation report, we provide a summary of the epidemiological situation and response activities in Nigeria.
🔗Download, read, and share via
https://ncdc.gov.ng/diseases/sitreps/?cat=5&name=An%20update%20of%20Lassa%20fever%20outbreak%ll20in%20Nigeria
#LassaFeverInfo
You can not be too safe!
#Lassafever presents with symptoms similar to those of many illnesses like malaria.
Healthcare workers are urged to always have a high index of suspicion and practice standard infection prevention and control measures when attending to patients.
#LassafeverInfo