Answers for "lua check if string is number"

0

lua check if string is number

local function isInteger(str)

  return not (str == "" or str:find("%D"))  -- str:match("%D") also works

end
Posted by: Guest on July-18-2021

Code answers related to "lua check if string is number"

Browse Popular Code Answers by Language