function t.numberMax(D)return function(f)local s,T=t.number(f)if not s then return false,T end if f<=D then return true else return false,string.format("\110\117\109\098\101\114 \060\061 \037\100 \101\120\112\101\099\116\101\100\044 \103\111\116 \037\100",D,f)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 <= %d expected, got %d", max, value)
		end
	end
end
