Anonymous user
Test integerness: Difference between revisions
→{{header|Lua}}
Line 357:
=={{header|Lua}}==
<lang lua> function IsInt(What)
if tonumber(What) == What and math.floor(tonumber(What)) == tonumber(What) then
return true
|
Line 357:
=={{header|Lua}}==
<lang lua> function IsInt(What)
if tonumber(What) == What and math.floor(tonumber(What)) == tonumber(What) then
return true
|