RosettaCodeData/Task/Determine-if-a-string-is-numeric/Batch-File/determine-if-a-string-is-numeric.bat

11 lines
134 B
Batchfile
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
set /a a=%arg%+0 >nul
if %a% == 0 (
if not "%arg%"=="0" (
echo Non Numeric.
) else (
echo Numeric.
)
) else (
echo Numeric.
)