<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Преобразование числа в размер в мегабайтах]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=18362</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=18362&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Преобразование числа в размер в мегабайтах».]]></description>
		<lastBuildDate>Thu, 30 Jan 2025 18:30:04 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Преобразование числа в размер в мегабайтах]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=161943#p161943</link>
			<description><![CDATA[<p><strong>1srafel</strong></p><div class="codebox"><pre><code>;Для проверки: https://allcalc.ru/converter/megabytes-kilobytes

F2:: ; Для теста:
T=
Loop, 30{
 Random, R, 0, 1234567890123
 T .= R &quot;   &gt;&gt;&gt;   &quot; FormatFileSize(R) &quot;`n&quot;
}
MsgBox, % T
Return


FormatFileSize(Size, R := 2){
 Static T := [&quot;Байт&quot;, &quot;Кб&quot;, &quot;Мб&quot;, &quot;Гб&quot;, &quot;Тб&quot;], TM := T.Count()
 I := 1
 while( (size &gt;= 1024) And (I &lt; TM))
  Size := (Size / 1024), I++
 Return ARound(Size, R) &quot; &quot; T[i]
}

ARound(D, R := 2){	; Число, Округление до N знаков после запятой.
 Return RTrim(RTrim(Round(D, R),&quot;0&quot;), &quot;.&quot;)
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (__Михаил__)]]></author>
			<pubDate>Thu, 30 Jan 2025 18:30:04 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=161943#p161943</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Преобразование числа в размер в мегабайтах]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=161942#p161942</link>
			<description><![CDATA[<div class="codebox"><pre><code>8306546/1024/1024=7,92173957824707</code></pre></div><p><a href="https://tinkova.ucoz.ru/index/edinicy_izmerenija/0-96">Таблица байтов.</a></p>]]></description>
			<author><![CDATA[null@example.com (Alectric)]]></author>
			<pubDate>Thu, 30 Jan 2025 12:21:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=161942#p161942</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Преобразование числа в размер в мегабайтах]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=161941#p161941</link>
			<description><![CDATA[<p>Добрый день. Есть такое значение, -<br /></p><div class="codebox"><pre><code>&quot;size&quot;:8306546,</code></pre></div><p>которое должно конвертироваться в &quot;7,9 МБ&quot;. По какому принципу оно закодировано?</p>]]></description>
			<author><![CDATA[null@example.com (1srafel)]]></author>
			<pubDate>Thu, 30 Jan 2025 11:50:40 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=161941#p161941</guid>
		</item>
	</channel>
</rss>
