Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I found the answer:</p> <blockquote> <p>Char.IsNumber() determines if a Char is of any numeric Unicode category. This contrasts with IsDigit, which determines if a Char is a radix-10 digit.</p> <p>Valid numbers are members of the following categories in <a href="http://msdn.microsoft.com/en-us/library/system.globalization.unicodecategory.aspx" rel="noreferrer" title="Decimal digit character, that is, a character in the range 0 through 9. Signified by the Unicode designation &quot;Nd&quot; (number, decimal digit). The value is 8.">UnicodeCategory</a>:</p> <ol> <li><strong><code>DecimalDigitNumber</code></strong><br> Decimal digit character, that is, a character in the range 0 through 9. Signified by the Unicode designation "Nd" (number, decimal digit). The value is 8.</li> <li><strong><code>LetterNumber</code></strong><br> Number represented by a letter, instead of a decimal digit, for example, the Roman numeral for five, which is "V". The indicator is signified by the Unicode designation "Nl" (number, letter). The value is 9.</li> <li><strong><code>OtherNumber</code></strong><br> Number that is neither a decimal digit nor a letter number, for example, the fraction 1/2. The indicator is signified by the Unicode designation "No" (number, other). The value is 10.</li> </ol> </blockquote> <h2>Conclusion</h2> <ul> <li><strong><code>Char.IsDigit</code></strong>:<br> Valid digits are members of the <code>DecimalDigitNumber</code> category only.</li> <li><strong><code>Char.IsNumber</code></strong>:<br> Valid numbers are members of the <code>DecimalDigitNumber</code>, <code>LetterNumber</code>, or <code>OtherNumber</code> category.</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload