ProtoFlux:IsNumber: Difference between revisions

From Resonite Wiki
m style & formatting
m YoshBot moved page ProtoFlux:Is Number to ProtoFlux:IsNumber: Automated: removing spaces from ProtoFlux namespace
 
(One intermediate revision by one other user not shown)
Line 30: Line 30:


== See Also ==
== See Also ==
* [[ProtoFlux:Is Digit]]
* [https://learn.microsoft.com/en-us/dotnet/api/system.char.isnumber#system-char-isnumber(system-char) Microsoft documentation for the <code>Char.IsNumber(Char)</code> function].
* [https://learn.microsoft.com/en-us/dotnet/api/system.char.isnumber#system-char-isnumber(system-char) Microsoft documentation for the <code>Char.IsNumber(Char)</code> function].


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

Latest revision as of 00:25, 21 August 2025

Is Number
Character
*
Characters

The Is Number node takes in a character literal and returns if that character is a number.

Inputs

Character (char)

The character literal to check.

Outputs

* (bool)

Returns true if Character is a number, false otherwise. Numbers recognized by this node are given the Unicode delegation Nd, Nl, or No.

Examples

An easy way to remember the difference between this node and the Is Digit 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.

See Also