<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: эквивалент %=]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13677&amp;type=atom" />
	<updated>2018-05-05T21:52:58Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13677</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: эквивалент %=]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125131#p125131" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>result &amp;= ~LONG_MIN</code></pre></div><p>на AHK означает то же самое, <a href="https://autohotkey.com/docs/Variables.htm#unary">читайте</a> <a href="https://autohotkey.com/docs/Variables.htm#AssignOp">хэлп</a>, 1103515245L в AHK то же самое, что просто 1103515245, L — указание типа константы.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-05-05T21:52:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125131#p125131</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: эквивалент %=]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125130#p125130" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>KusochekDobra пишет:</cite><blockquote><p>В result присваивается остаток от целочисленного деления result на max.<br /></p><div class="codebox"><pre><code>
result := 5, max := 3
result := (result / max) - (result // max)
</code></pre></div></blockquote></div><p>Я думаю так:<br /></p><div class="codebox"><pre><code>result := 5, max := 3
result := mod(result, max)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-05-05T21:39:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125130#p125130</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: эквивалент %=]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125129#p125129" />
			<content type="html"><![CDATA[<p>Спасибо.<br />Еще вопросик. В одно языке программирования есть такая строчка:<br /></p><div class="codebox"><pre><code>result &amp;= ~LONG_MIN;        /* remove sign bit */</code></pre></div><p>result - это какое-то очень длинное число.<br />Как это применить для ahk? <br />И что значит число где на конце буква L например 1103515245L?</p>]]></content>
			<author>
				<name><![CDATA[Dworkin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27052</uri>
			</author>
			<updated>2018-05-05T21:27:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125129#p125129</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: эквивалент %=]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125126#p125126" />
			<content type="html"><![CDATA[<p>В result присваивается остаток от целочисленного деления result на max.<br /></p><div class="codebox"><pre><code>
result := 5, max := 3
result := (result / max) - (result // max)
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[KusochekDobra]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33846</uri>
			</author>
			<updated>2018-05-05T21:21:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125126#p125126</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: эквивалент %=]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125125#p125125" />
			<content type="html"><![CDATA[<p>Вот тут нашел функцию для разных языков <a href="https://github.com/devLotto/pawnrandom">https://github.com/devLotto/pawnrandom</a>. Хотел ее перевести для ahk. Увидел такую запись для каждого языка &quot;result %= max&quot;. Скажите как это перевести на ahk? <br />В описании например для python написано: &quot;Делит по модулю операнды и присваивает результат левому.&quot;</p>]]></content>
			<author>
				<name><![CDATA[Dworkin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27052</uri>
			</author>
			<updated>2018-05-05T21:12:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125125#p125125</id>
		</entry>
</feed>
