Difference between revisions of "Is Digit (LogiX node)"

From Neos Wiki
Jump to navigation Jump to search
(Created page with "<languages></languages> <translate> <!--T:1--> {{Infobox Logix Node | Name = Is Digit | Image = noframe | 128px | 'Is Digit' LogiX node | Input0Typ...")
 
(Marked this version for translation)
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
  
 
<!--T:2-->
 
<!--T:2-->
The '''Is Digit''' node takes a character and outputs <code>true</code> or <code>false</code> depending on if the character is an arabic digit or not.
+
The '''Is Digit''' node takes a character and outputs <code>true</code> or <code>false</code> depending on if the character is classified as a digit in Unicode.
  
 
== Usage == <!--T:3-->
 
== Usage == <!--T:3-->
 
This node takes a character input and outputs a boolean.
 
This node takes a character input and outputs a boolean.
  
If the character is any arabic digit from <code>0</code> to <code>9</code>, this node will output <code>true</code>. Otherwise, it will output <code>false</code>.
+
<!--T:6-->
 +
If the character is given the [https://www.fileformat.info/info/unicode/category/Nd/list.htm delegation <code>Nd</code> in Unicode], this node will output <code>true</code>. Otherwise, it will output <code>false</code>.
  
 
== Examples == <!--T:4-->
 
== Examples == <!--T:4-->
 
In the following picture, "5" is a digit and outputs <code>true</code>. "G" is not a digit and therefore outputs <code>false</code>
 
In the following picture, "5" is a digit and outputs <code>true</code>. "G" is not a digit and therefore outputs <code>false</code>
  
 +
<!--T:7-->
 
[[File:Logix Example IsDigit.png|442px]]
 
[[File:Logix Example IsDigit.png|442px]]
  

Latest revision as of 02:15, 11 September 2022

Other languages:
English
Is Digit
'Is Digit' LogiX node
Inputs
  Char Character
Outputs
  Bool *

The Is Digit node takes a character and outputs true or false depending on if the character is classified as a digit in Unicode.

Usage

This node takes a character input and outputs a boolean.

If the character is given the delegation Nd in Unicode, this node will output true. Otherwise, it will output false.

Examples

In the following picture, "5" is a digit and outputs true. "G" is not a digit and therefore outputs false

Logix Example IsDigit.png

Node Menu

Characters
Back + From UTF16 From UTF32 Get Character Is Control Is Digit
Is Letter Is Letter Or Digit Is Lower Is Number Is Punctuation Is Separator Is Surrogate
Is Symbol Is Upper Is White Space String To UTF32 Surrogate Pair To UTF32 To Lower To Upper
To UTF16