<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to integer to Real datatype conversion</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bb2f89ee35/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bb2f89ee35/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/bb2f89ee35/</id><updated>2020-02-27T13:54:09.801000Z</updated><subtitle>Recent posts to integer to Real datatype conversion</subtitle><entry><title>integer to Real datatype conversion</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bb2f89ee35/?limit=25#ff32" rel="alternate"/><published>2020-02-27T13:54:09.801000Z</published><updated>2020-02-27T13:54:09.801000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com5a4a25ad5bf8fc0a47765d3bd459a4ed4cace880</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; rickj&lt;/p&gt;
&lt;p&gt;TO_REAL should work for you.  ASCII is not a valid data type but STRING is.  This works for me...&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nt"&gt;VAR&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="nt"&gt;MyInt&lt;/span&gt;&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;INT&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;42&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="nt"&gt;MyReal&lt;/span&gt;&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;REAL&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="nt"&gt;END_VAR&lt;/span&gt;
&lt;span class="nt"&gt;MyReal&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="nt"&gt;TO_REAL&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;MyInt&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>integer to Real datatype conversion</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bb2f89ee35/?limit=25#26ce" rel="alternate"/><published>2020-02-27T13:54:09.581000Z</published><updated>2020-02-27T13:54:09.581000Z</updated><author><name>joelprasad2014</name><uri>https://forge.codesys.com/u/joelprasad2014/</uri></author><id>https://forge.codesys.com9d010646ce3e568f71b2c8d075214500f755f8a2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Which 'To xxxx' operator is the correct one? I have already tried with To Real, To ASCII.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>integer to Real datatype conversion</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bb2f89ee35/?limit=25#ceeb" rel="alternate"/><published>2020-02-27T13:54:09.390000Z</published><updated>2020-02-27T13:54:09.390000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comed39d59dcf07fdb0988f926ee75d13eb0cb7a0c1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; rickj&lt;/p&gt;
&lt;p&gt;I think you're looking for &lt;a class="" href="https://help.codesys.com/webapp/_cds_operator_to_xxx;product=codesys;version=3.5.12.0" rel="nofollow"&gt;Operator ‘TO_&amp;lt;xxx&amp;gt;&amp;lt;/xxx&amp;gt;&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>integer to Real datatype conversion</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bb2f89ee35/?limit=25#8478" rel="alternate"/><published>2020-02-27T13:54:08.805000Z</published><updated>2020-02-27T13:54:08.805000Z</updated><author><name>joelprasad2014</name><uri>https://forge.codesys.com/u/joelprasad2014/</uri></author><id>https://forge.codesys.comc0835f7fa290321c7dab7681c00990804e958318</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am trying to convert a data in integer datatype to Real datatype. I have tried many ways but not able to accomplish the task. Please suggest the correct method&lt;/p&gt;
&lt;p&gt;Thanks &lt;br/&gt;
Joel&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>