function t.numberMax(A)return function(W)local X,Z=t.number(W)if not X then return false,Z end if W<=A then return true else return false,string.format("\110\117\109\098\101\114 \060\061 \037\115 \101\120\112\101\099\116\101\100\044 \103\111\116 \037\115",A,W)end end end

function t.numberMax(max)
	return function(value)
		local success, errMsg = t.number(value)
		if not success then
			return false, errMsg
		end

		if value <= max then
			return true
		else
			return false, string.format("number <= %s expected, got %s", max, value)
		end
	end
end
