<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>https://playzone.in.ua/wiki/mc//index.php?action=history&amp;feed=atom&amp;title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C%3AConvert_base</id>
		<title>Модуль:Convert base - История изменений</title>
		<link rel="self" type="application/atom+xml" href="https://playzone.in.ua/wiki/mc//index.php?action=history&amp;feed=atom&amp;title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C%3AConvert_base"/>
		<link rel="alternate" type="text/html" href="https://playzone.in.ua/wiki/mc//index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Convert_base&amp;action=history"/>
		<updated>2026-05-14T04:42:38Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.28.3</generator>

	<entry>
		<id>https://playzone.in.ua/wiki/mc//index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Convert_base&amp;diff=13066&amp;oldid=prev</id>
		<title>Softer: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="https://playzone.in.ua/wiki/mc//index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Convert_base&amp;diff=13066&amp;oldid=prev"/>
				<updated>2017-01-17T22:26:54Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style='vertical-align: top;' lang='ru'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 22:26, 17 января 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;' lang='ru'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Softer</name></author>	</entry>

	<entry>
		<id>https://playzone.in.ua/wiki/mc//index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Convert_base&amp;diff=13065&amp;oldid=prev</id>
		<title>Asassin 1: Новая страница: «local p = {} function p.fromDec( f ) 	local args = f.args or f 	local base = tonumber( args[2] ) or 16 	local dec = tonumber( args[1] ) or 0 	 	if base == 10 or d…»</title>
		<link rel="alternate" type="text/html" href="https://playzone.in.ua/wiki/mc//index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Convert_base&amp;diff=13065&amp;oldid=prev"/>
				<updated>2015-07-07T19:16:50Z</updated>
		
		<summary type="html">&lt;p&gt;Новая страница: «local p = {} function p.fromDec( f ) 	local args = f.args or f 	local base = tonumber( args[2] ) or 16 	local dec = tonumber( args[1] ) or 0 	 	if base == 10 or d…»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
function p.fromDec( f )&lt;br /&gt;
	local args = f.args or f&lt;br /&gt;
	local base = tonumber( args[2] ) or 16&lt;br /&gt;
	local dec = tonumber( args[1] ) or 0&lt;br /&gt;
	&lt;br /&gt;
	if base == 10 or dec == 0 then&lt;br /&gt;
		return dec&lt;br /&gt;
	elseif base == 16 then&lt;br /&gt;
		return string.format( '%X', dec )&lt;br /&gt;
	else&lt;br /&gt;
		local chars = '0123456789ABCDEF'&lt;br /&gt;
		local pos&lt;br /&gt;
		local out = ''&lt;br /&gt;
		while dec &amp;gt; 0 do&lt;br /&gt;
			pos = math.mod( dec, base ) + 1&lt;br /&gt;
			dec = math.floor( dec / base )&lt;br /&gt;
			out = string.sub( chars, pos, pos ) .. out&lt;br /&gt;
		end&lt;br /&gt;
		return out&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.fromBase( f )&lt;br /&gt;
	local args = f.args or f&lt;br /&gt;
	local fromBase = tonumber( args[3] ) or 10&lt;br /&gt;
	local toBase = tonumber( args[2] ) or 16&lt;br /&gt;
	local dec = tonumber( args[1], fromBase ) or 0&lt;br /&gt;
	return p.fromDec{ dec, toBase }&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.fromHex( f )&lt;br /&gt;
	return p.fromBase{ f.args[1], f.args[2], 16 }&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.fromBin( f )&lt;br /&gt;
	return p.fromBase{ f.args[1], f.args[2], 2 }&lt;br /&gt;
end&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Asassin 1</name></author>	</entry>

	</feed>