RosettaCodeData/Task/Determine-if-a-string-is-numeric/Maple/determine-if-a-string-is-numeric.maple
2023-07-01 13:44:08 -04:00

11 lines
223 B
Text

isNumeric := proc(s)
try
if type(parse(s), numeric) then
printf("The string is numeric."):
else
printf("The string is not numeric."):
end if:
catch:
printf("The string is not numeric."):
end try:
end proc: