Skip to content

Latest commit

 

History

History
83 lines (59 loc) · 1.31 KB

isDigit.adoc

File metadata and controls

83 lines (59 loc) · 1.31 KB

title: "isDigit()" categories: [ "Functions" ] subCategories: [ "Characters" ] ---

isDigit(thisChar)

Description

Analyse if a char is a digit (that is a number). Returns true if thisChar is a number.

Syntax

`isDigit(thisChar)`

Parameters

thisChar: variable. Allowed data types: char

Returns

true: if thisChar is a number.

Example Code

if (isDigit(this))      // tests if this is a letter
{
	Serial.println("The character is a number");
}
else
{
	Serial.println("The character is not a number");
}

See also