ProtoFlux:IsDigit: Difference between revisions

From Resonite Wiki
ok maybe when I actually look at my edits and not rush will I not span #wiki-log
m YoshBot moved page ProtoFlux:Is Digit to ProtoFlux:IsDigit: Automated: removing spaces from ProtoFlux namespace
 
(One intermediate revision by one other user not shown)
Line 31: Line 31:


== See Also ==
== See Also ==
* [[ProtoFlux:Is Number]]
* [https://learn.microsoft.com/en-us/dotnet/api/system.char.isdigit#system-char-isdigit(system-char) Microsoft Documentation for the <code>Char.IsDigit(Char)</code> method.]
* [https://learn.microsoft.com/en-us/dotnet/api/system.char.isdigit#system-char-isdigit(system-char) Microsoft Documentation for the <code>Char.IsDigit(Char)</code> method.]


[[Category:ProtoFlux:Strings:Characters]]
[[Category:ProtoFlux:Strings:Characters]]

Latest revision as of 00:24, 21 August 2025

Is Digit
Character
*
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.

Examples

See Also