<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=TIniFile.ReadFloat</id>
		<title>TIniFile.ReadFloat - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=TIniFile.ReadFloat"/>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=TIniFile.ReadFloat&amp;action=history"/>
		<updated>2026-05-26T02:25:12Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.soldat.pl/index.php?title=TIniFile.ReadFloat&amp;diff=1095&amp;oldid=prev</id>
		<title>Mighty: new page</title>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=TIniFile.ReadFloat&amp;diff=1095&amp;oldid=prev"/>
				<updated>2013-08-22T17:09:44Z</updated>
		
		<summary type="html">&lt;p&gt;new page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; '''function ReadFloat(const Section, Ident: string; Default: Double): Double'''&lt;br /&gt;
  Section: Section name&lt;br /&gt;
  Ident: Property name (key)&lt;br /&gt;
  Default: Value used as a result when the key has not been found&lt;br /&gt;
  Result: Value of a key (if successful) or ''Default'' (if not)&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
&lt;br /&gt;
This function will try to read a Double (decimal) value from specified section and key&amp;lt;br&amp;gt;&lt;br /&gt;
If it fails to do so for some reason, the ''Default'' value is returned.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
''example.ini'' in soldatserver's root folder&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
[ModConfig]&lt;br /&gt;
DamageModifier=1.73&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
script code:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
const&lt;br /&gt;
  // assuming Sandboxed Level &amp;lt; 2&lt;br /&gt;
  PATH = 'example.ini';&lt;br /&gt;
var&lt;br /&gt;
  Ini: TIniFile;&lt;br /&gt;
  temp: Double;&lt;br /&gt;
&lt;br /&gt;
begin&lt;br /&gt;
  Ini := File.CreateINI(PATH);&lt;br /&gt;
  temp := Ini.ReadFloat('ModConfig','DamageModifier',1); // temp = 1.73&lt;br /&gt;
  Ini.Free;&lt;br /&gt;
end.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:TIniFile]]&lt;/div&gt;</summary>
		<author><name>Mighty</name></author>	</entry>

	</feed>