local x=require(script.Parent:WaitForChild("\078\117\109\098\101\114"))local C={}C.Name="\073\110\116\101\103\101\114"C.Default="\048"function C.Process(I,C)local N=x:Process(C)local X=N:find("\037\046")or#N+1 return N:sub(1,X-1)end function C.Verify(I,C)local N=x:Verify(C)return N and not C:find("\037\046")end function C.ToType(C,x)x=C:Verify(x)and x or C.Default return tonumber(x)end return C
local NumberMask = require(script.Parent:WaitForChild("Number"))

local Mask = {}

Mask.Name = "Integer"
Mask.Default = "0"

function Mask:Process(text)
	local new = NumberMask:Process(text)
	local find = new:find("%.") or #new + 1

	return new:sub(1, find - 1)
end

function Mask:Verify(text)
	local valid = NumberMask:Verify(text)
	return (valid and not text:find("%."))
end

function Mask:ToType(text)
	text = self:Verify(text) and text or self.Default
	return tonumber(text)
end

return Mask