Typo fix.  | 
				m cleanup  | 
				||
| Line 13: | Line 13: | ||
The <code>Is Digit</code> node takes in a character literal and returns if that character is a digit. Digit characters are numbers that have a numeric value to them and is not a symbol.  | The <code>Is Digit</code> node takes in a character literal and returns if that character is a digit. Digit characters are numbers that have a numeric value to them and is not a symbol.  | ||
== Inputs ==  | == Inputs ==  | ||
=== Character ([[Type:char|char]]) ===    | === Character ([[Type:char|char]]) ===  | ||
The character literal to check.  | The character literal to check.  | ||
| Line 29: | Line 22: | ||
=== * ([[Type:bool|bool]]) ===  | === * ([[Type:bool|bool]]) ===  | ||
Returns if <code>Character</code> is a digit. Digits recognized by this node are given [https://www.compart.com/en/unicode/category/Nd The delegation <code>Nd</code> in Unicode]  | |||
== Examples ==  | |||
An easy way to remember the difference between this node and [[ProtoFlux:Is Number|the Is Number node]] is: All digits are numbers, but not all numbers are digits.  | |||
* ½, ①, 1, 2, 3 all count as numbers.  | |||
* 1, 2, 3 count as digits.  | |||
== See Also ==  | == See Also ==  | ||
* [https://learn.microsoft.com/en-us/dotnet/api/system.char.isdigit?view=net-8.0#system-char-isdigit(system-char) Microsoft Documentation about the <code>Char::IsDigit</code> method.]  | |||
[[Category:ProtoFlux:Strings:Characters]]  | [[Category:ProtoFlux:Strings:Characters]]  | ||
Revision as of 19:41, 28 April 2024
Is Digit
Characters
The Is Digit node takes in a character literal and returns if that character is a digit. Digit characters are numbers that have a numeric value to them and is not a symbol.
Inputs
Character (char)
The character literal to check.
Outputs
* (bool)
Returns if Character is a digit. Digits recognized by this node are given The delegation Nd in Unicode
Examples
An easy way to remember the difference between this node and the Is Number node is: All digits are numbers, but not all numbers are digits.
- ½, ①, 1, 2, 3 all count as numbers.
 - 1, 2, 3 count as digits.