@TDIGIT[string] : Returns the number of digits (0-9) in string.

 

See also: @TALNUM, @TALPHA, @TASCII, @TCNTRL, @TLOWER, @TPRINT, @TPUNCT, @TSPACE, @TUPPER, and @TXDIGIT.

 

Example:

 

echo %@tdigit[0]

1

 

echo %@tdigit[123.456]

6

 

echo %@tdigit[-123]

3