m consistency with is number  | 
				m style, formatting  | 
				||
| Line 12: | Line 12: | ||
|}}  | |}}  | ||
The   | 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 are not a symbol.  | ||
== Inputs ==  | == Inputs ==  | ||
| Line 24: | Line 24: | ||
Returns <code>true</code> if <code>Character</code> is a digit, <code>false</code> otherwise. Digits recognized by this node are given [https://www.compart.com/en/unicode/category/Nd the delegation <code>Nd</code> in Unicode]  | Returns <code>true</code> if <code>Character</code> is a digit, <code>false</code> otherwise. Digits recognized by this node are given [https://www.compart.com/en/unicode/category/Nd the delegation <code>Nd</code> in Unicode]  | ||
An easy way to remember the difference between this node and the [[ProtoFlux:Is Number|Is Number]] node is: All digits are numbers, but not all numbers are digits.  | An easy way to remember the difference between this node and the [[ProtoFlux:Is Number|Is Number]] node is: All digits are numbers, but not all numbers are digits.  | ||
* ½, ①, 1, 2, 3 all count as numbers.  | * ½, ①, 1, 2, 3 all count as numbers.  | ||
* 1, 2, 3 also count as digits.  | * 1, 2, 3 also count as digits.  | ||
== Examples ==  | |||
== See Also ==  | == See Also ==  | ||
Revision as of 20:30, 3 June 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 are not a symbol.
Inputs
Character (char)
The character literal to check.
Outputs
* (bool)
Returns true if Character is a digit, false otherwise. Digits recognized by this node are given the delegation Nd in Unicode
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 also count as digits.