<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Convertion Real to UDINT</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5cf127f9ae/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5cf127f9ae/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/5cf127f9ae/</id><updated>2020-05-18T05:56:41.189000Z</updated><subtitle>Recent posts to Convertion Real to UDINT</subtitle><entry><title>Convertion Real to UDINT</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5cf127f9ae/?limit=25#6490" rel="alternate"/><published>2020-05-18T05:56:41.189000Z</published><updated>2020-05-18T05:56:41.189000Z</updated><author><name>i-campbell</name><uri>https://forge.codesys.com/u/i-campbell/</uri></author><id>https://forge.codesys.com916bf35af1271624caba7344e9740f2990fa8095</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The REAL format is limited to about 7 or 8 digits of precision.&lt;br/&gt;
For the precision you need, use LREAL.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Convertion Real to UDINT</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5cf127f9ae/?limit=25#c24e" rel="alternate"/><published>2020-05-18T05:24:44.297000Z</published><updated>2020-05-18T05:24:44.297000Z</updated><author><name>mawaloc</name><uri>https://forge.codesys.com/u/mawaloc/</uri></author><id>https://forge.codesys.comd7cc6ad1169f069d1053a3333ee3064e51fa6e55</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello ,&lt;/p&gt;
&lt;p&gt;I've an issue where I don't know where it comes from.&lt;br/&gt;
I'm trying to make a combination of two numbers:&lt;br/&gt;
-First Number I will call A:&lt;br/&gt;
 where he could gets until 5 digits.aaaaa =&amp;gt; Actual type UDINT&lt;br/&gt;
-Second number i will call B:&lt;br/&gt;
where he could gets also until 5 digits.bbbbb =&amp;gt; Actual type UDINT&lt;br/&gt;
A:28&lt;br/&gt;
b:235&lt;/p&gt;
&lt;p&gt;How I do is :&lt;br/&gt;
REAL_TO_UDINT(((UDINT_TO_REAL(28)/10000)+235)*10000)&lt;/p&gt;
&lt;p&gt;My Problem is when b as 3 digits my result is ok.&lt;br/&gt;
Result : 23500028&lt;br/&gt;
but now if my b numbers increase lets said 4 or 5 digits the result change&lt;br/&gt;
and I arrive to:&lt;br/&gt;
b:1235&lt;br/&gt;
result: 123500030&lt;/p&gt;
&lt;p&gt;I think there is a rounding somewhere That I don't find.&lt;br/&gt;
But in anycase my result is still under what UDINT can accept, this is why I don't understand&lt;/p&gt;
&lt;p&gt;thanks you for your comment&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>