Module:Byte: Difference between revisions

From Wiki of ZZT
Jump to navigation Jump to search
(Module for displaying an unsigned byte value in decimal and hex)
 
(No difference)

Latest revision as of 07:50, 18 January 2021

Documentation for this module may be created at Module:Byte/doc

local p = {}

function p.byte(frame)
	local i = tonumber(frame.args[1])
	return string.format("%d (0x%02X)", i, i)
end

return p