<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Команда "Format"]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=13687</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13687&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Команда "Format"».]]></description>
		<lastBuildDate>Mon, 07 May 2018 19:15:26 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Команда "Format"]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=125196#p125196</link>
			<description><![CDATA[<p>Всё правильно:<br /></p><div class="quotebox"><blockquote><p>Use a single space to prefix the output value with a space if it is signed and positive.</p></blockquote></div><p>Чтобы сделать паддинг пробелами, сам пробел писать не нужно.<br /></p><div class="quotebox"><blockquote><p>Width: a decimal integer which controls the minimum width of the formatted value, in characters. <em>By default, values are right-aligned and spaces are used for padding</em>.</p></blockquote></div><p>&quot;i&quot; там тоже ни к чему.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Mon, 07 May 2018 19:15:26 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=125196#p125196</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Команда "Format"]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=125192#p125192</link>
			<description><![CDATA[<p>Пытаюсь разобраться с командой <em>Format</em>, возник вопрос.</p><p>Вот например мне нужно чтоб число было 18-значным.<br /></p><div class="codebox"><pre><code>s444 .= Format(&quot;{1:018i}&quot;, 54321)
s666 .= Format(&quot;{1: 18i}&quot;, 54321)
ListVars</code></pre></div><p>Так работает. В первом случае недостающие знаки заполняются нолями. Во втором случае - пробелами. Вроде всё хорошо.</p><p>Дальше я пытаюсь дополнить число пробелами до 3 знаков. Но если число уже содержит 3 знака, добавляется лишний пробел, а он мне не нужен. Что я делаю не так?<br /></p><div class="codebox"><pre><code>s3 .= Format(&quot;{1: 3i}&quot;,555)
s4 .= &quot;&gt;&gt;&gt;&quot;
s4 .= s3
s4 .= &quot;&lt;&lt;&lt;&quot;
ListVars</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Mon, 07 May 2018 18:24:18 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=125192#p125192</guid>
		</item>
	</channel>
</rss>
