<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://jantanoo.info/index.php?action=history&amp;feed=atom&amp;title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C%3AMath%2Ftonumber</id>
	<title>Модуль:Math/tonumber - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://jantanoo.info/index.php?action=history&amp;feed=atom&amp;title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C%3AMath%2Ftonumber"/>
	<link rel="alternate" type="text/html" href="https://jantanoo.info/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Math/tonumber&amp;action=history"/>
	<updated>2026-04-25T18:04:16Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://jantanoo.info/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Math/tonumber&amp;diff=2694&amp;oldid=prev</id>
		<title>Атомный трамвай: Новая страница: «--  This module convert strings to numbers.   local p = {}  -- Get first integer number from string. function p.integer( frame )     local s = frame.args[1]      s = string.gsub( s, &#039;[^0-9]&#039;, &#039; &#039; )     s = mw.text.trim( s )     s = mw.text.split( s, &#039; &#039; )[1]          return tonumber(s) end  -- Get first 4-digit integer number from string. function p.year( frame )     local s = frame.args[1]          s = string.gsub( s, &#039;[^0-9]&#039;, &#039; &#039; )     s = mw.text.tri...»</title>
		<link rel="alternate" type="text/html" href="https://jantanoo.info/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Math/tonumber&amp;diff=2694&amp;oldid=prev"/>
		<updated>2023-02-14T00:47:47Z</updated>

		<summary type="html">&lt;p&gt;Новая страница: «--&lt;a href=&quot;/index.php?title=This_module_convert_strings_to_numbers.&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;This module convert strings to numbers. (страница не существует)&quot;&gt;This module convert strings to numbers.  &lt;/a&gt; local p = {}  -- Get first integer number from string. function p.integer( frame )     local s = frame.args[1]      s = string.gsub( s, &amp;#039;[^0-9]&amp;#039;, &amp;#039; &amp;#039; )     s = mw.text.trim( s )     s = mw.text.split( s, &amp;#039; &amp;#039; )[1]          return tonumber(s) end  -- Get first 4-digit integer number from string. function p.year( frame )     local s = frame.args[1]          s = string.gsub( s, &amp;#039;[^0-9]&amp;#039;, &amp;#039; &amp;#039; )     s = mw.text.tri...»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;--[[&lt;br /&gt;
&lt;br /&gt;
This module convert strings to numbers.&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
-- Get first integer number from string.&lt;br /&gt;
function p.integer( frame )&lt;br /&gt;
    local s = frame.args[1]&lt;br /&gt;
&lt;br /&gt;
    s = string.gsub( s, &amp;#039;[^0-9]&amp;#039;, &amp;#039; &amp;#039; )&lt;br /&gt;
    s = mw.text.trim( s )&lt;br /&gt;
    s = mw.text.split( s, &amp;#039; &amp;#039; )[1]&lt;br /&gt;
    &lt;br /&gt;
    return tonumber(s)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Get first 4-digit integer number from string.&lt;br /&gt;
function p.year( frame )&lt;br /&gt;
    local s = frame.args[1]&lt;br /&gt;
    &lt;br /&gt;
    s = string.gsub( s, &amp;#039;[^0-9]&amp;#039;, &amp;#039; &amp;#039; )&lt;br /&gt;
    s = mw.text.trim( s )&lt;br /&gt;
    s = mw.text.split( s, &amp;#039; +&amp;#039; )&lt;br /&gt;
&lt;br /&gt;
    n = frame.args[&amp;#039;default&amp;#039;] or nil&lt;br /&gt;
    for k, v in pairs( s ) do&lt;br /&gt;
        if string.match( v, &amp;#039;^[1-9]%d%d%d$&amp;#039; ) then&lt;br /&gt;
            n = tonumber(v)&lt;br /&gt;
            break&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    return n&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Атомный трамвай</name></author>
	</entry>
</feed>