<?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=17226&amp;type=atom" />
	<updated>2022-07-04T20:11:53Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=17226</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка кратности числа]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153786#p153786" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> ну это да, лучше уж тогда русскими и писать, ahk прекрасно понимает русские символы в имени переменных.</p>]]></content>
			<author>
				<name><![CDATA[andrey.a.polyakov.b2c]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42228</uri>
			</author>
			<updated>2022-07-04T20:11:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153786#p153786</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка кратности числа]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153784#p153784" />
			<content type="html"><![CDATA[<p>В любом случае названия переменных русскими словами латиницей — это кринж. <img src="//forum.script-coding.com/img/smilies/lol.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-07-04T20:08:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153784#p153784</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка кратности числа]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153783#p153783" />
			<content type="html"><![CDATA[<p>А если убрать переменные то вообще еще короче.<br /></p><div class="codebox"><pre><code>MsgBox, % Mod(121,11) ? &quot;Не кратное число&quot; : &quot;Кратное число&quot;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[andrey.a.polyakov.b2c]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42228</uri>
			</author>
			<updated>2022-07-04T20:06:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153783#p153783</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка кратности числа]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153782#p153782" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, мне кажется ваш ответ лучше ☺.<br /></p><div class="codebox"><pre><code>MyVar := 121
kratnost := 11

res := Mod(MyVar,kratnost) ? &quot;Не кратное число&quot; : &quot;Кратное число&quot;

MsgBox, % res</code></pre></div>]]></content>
			<author>
				<name><![CDATA[andrey.a.polyakov.b2c]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42228</uri>
			</author>
			<updated>2022-07-04T20:05:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153782#p153782</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка кратности числа]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153781#p153781" />
			<content type="html"><![CDATA[<p><span class="postimg"><img src="https://i.imgur.com/uXFO9Ie.png" alt="https://i.imgur.com/uXFO9Ie.png" /></span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-07-04T19:52:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153781#p153781</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка кратности числа]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153780#p153780" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>MyVar := 121
kratnost := 11

x := MyVar / kratnost
y := % Round(x)


IF (x = y)
MsgBox, &quot;Число кратно&quot;
Else
MsgBox, &quot;Число не кратно&quot;



MyVar := 122
kratnost := 11

x := MyVar / kratnost
y := % Round(x)

IF (x = y)
MsgBox, &quot;Число кратно&quot;
Else
MsgBox, &quot;Число не кратно&quot;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2022-07-04T19:46:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153780#p153780</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка кратности числа]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153777#p153777" />
			<content type="html"><![CDATA[<p>Для получения остатка от деления есть функция <em>Mod(Dividend, Divisor)</em>.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-07-04T19:40:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153777#p153777</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка кратности числа]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153776#p153776" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, если остаток при деление равен 0, значит кратно.</p>]]></content>
			<author>
				<name><![CDATA[ashiruk]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42657</uri>
			</author>
			<updated>2022-07-04T19:35:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153776#p153776</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка кратности числа]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153775#p153775" />
			<content type="html"><![CDATA[<p>А как бы вы проверили чисто математически?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-07-04T19:31:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153775#p153775</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Проверка кратности числа]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153774#p153774" />
			<content type="html"><![CDATA[<p>Вопрос наверное детский, но как проверить переменную на кратность, например, 11.</p>]]></content>
			<author>
				<name><![CDATA[ashiruk]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42657</uri>
			</author>
			<updated>2022-07-04T19:00:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153774#p153774</id>
		</entry>
</feed>
