<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: RegEx, число с плавающей точкой]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=7088&amp;type=atom" />
	<updated>2012-04-12T15:22:35Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=7088</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegEx, число с плавающей точкой]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59179#p59179" />
			<content type="html"><![CDATA[<p>Спасибо, помогло!</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2012-04-12T15:22:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59179#p59179</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegEx, число с плавающей точкой]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59147#p59147" />
			<content type="html"><![CDATA[<p><a href="http://forum.script-coding.com/profile.php?id=24888">Александр_</a> нет, думаю достаточно определения типа, т.к. </p><div class="quotebox"><cite>ypppu пишет:</cite><blockquote><p>Требуется определить, является ли содержимое переменной числом с плавающей точкой.</p></blockquote></div><div class="codebox"><pre><code>Var_1 = 11.22.33.
If Var_1 is float
    msgbox float
    else
     msgbox error
Var_1 = .22
If Var_1 is float
    msgbox float
    else
     msgbox error</code></pre></div><p>ну вот это работает верно</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2012-04-11T19:24:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59147#p59147</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegEx, число с плавающей точкой]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59144#p59144" />
			<content type="html"><![CDATA[<p>Есть конструкция <a href="http://www.autohotkey.com/docs/commands/IfIs.htm">If var is float</a>. Или нужно именно шаблоном?</p>]]></content>
			<author>
				<name><![CDATA[Александр_]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24888</uri>
			</author>
			<updated>2012-04-11T18:52:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59144#p59144</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: RegEx, число с плавающей точкой]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59143#p59143" />
			<content type="html"><![CDATA[<p>Прошу помочь.<br />Требуется определить, является ли содержимое переменной числом с плавающей точкой. Я попытался задать шаблон для функции RegExReplace.<br />Вроде бы всё просто: Шаблон ([0-9]+\.[0-9]+) обнаруживает числа типа 123.456. Однако, как быть с 78. и .90 ?<br />И ещё такая проблема.&nbsp; Строка типа 11.22.33. не является числом с плавающей точкой, но отвечает шаблону.</p><br /><div class="codebox"><pre><code>#SingleInstance, Force

Var_1 = 11.22.33.
Var_2 = % RegExReplace(Var_1, &quot;([0-9]+\.[0-9]+)&quot;, &quot;$1&quot;, OutputVarCount_1)

MsgBox, Var_1 = %Var_1% `r`n Var_2 = %Var_2% `r`n OutputVarCount_1 = %OutputVarCount_1%</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2012-04-11T17:56:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59143#p59143</id>
		</entry>
</feed>
