<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Real Data Type Range limitation</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/de0093c782/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/de0093c782/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/de0093c782/</id><updated>2020-02-27T19:36:52.807000Z</updated><subtitle>Recent posts to Real Data Type Range limitation</subtitle><entry><title>Real Data Type Range limitation</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/de0093c782/?limit=25#e2d1" rel="alternate"/><published>2020-02-27T19:36:52.807000Z</published><updated>2020-02-27T19:36:52.807000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.come8c93944e491b3262816d246735cb0b31cfb1ba2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Mikhail Shvetsov&lt;/p&gt;
&lt;p&gt;IMHO - In My Humble Opinion. You misunderstood me. It’s my fault, sorry. &lt;/p&gt;
&lt;p&gt;Ok, do you have DINT ( UDINT ) type? This type has 32 bits and you could use 10 numbers. You can convert REAL type  into UDINT (or DINT if you need “-“) by multiplying  to integer. After that it becomes possible to operate without missing accuracy.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Real Data Type Range limitation</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/de0093c782/?limit=25#20ac" rel="alternate"/><published>2020-02-27T19:36:49.206000Z</published><updated>2020-02-27T19:36:49.206000Z</updated><author><name>RajeshGandhi</name><uri>https://forge.codesys.com/u/rajeshgandhi/</uri></author><id>https://forge.codesys.coma561a465f752eeb0d162a16da23ce58c5ea8badf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Could you please provide more information on IMHO function. How to implement?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Rajesh G&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Real Data Type Range limitation</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/de0093c782/?limit=25#1bb3" rel="alternate"/><published>2020-02-27T19:36:47.932000Z</published><updated>2020-02-27T19:36:47.932000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.coma247fa670463c47e63d6dd51c9ec1e16116c3059</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Mikhail Shvetsov&lt;/p&gt;
&lt;p&gt;Real type has 32 bits, but mantissa of real type has only 23 bits. It’s a reason of limits data accuracy about 7 decimal numbers. Your values of variables acquire 8 numbers, and last number is wrong.&lt;/p&gt;
&lt;p&gt;LREAL type has twice more bits of mantissa then REAL type.&lt;/p&gt;
&lt;p&gt;If you don’t have LREAL you should write special function (IMHO) which would be able to work with “compound” data.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Real Data Type Range limitation</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/de0093c782/?limit=25#b603" rel="alternate"/><published>2020-02-27T19:36:44.349000Z</published><updated>2020-02-27T19:36:44.349000Z</updated><author><name>RajeshGandhi</name><uri>https://forge.codesys.com/u/rajeshgandhi/</uri></author><id>https://forge.codesys.comfdca7e18bf96c1a6432f183b707a992d3841fad2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Our target will not support LREAL.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Rajesh G&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Real Data Type Range limitation</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/de0093c782/?limit=25#ead6" rel="alternate"/><published>2020-02-27T19:36:42.993000Z</published><updated>2020-02-27T19:36:42.993000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.come5c367a8f3d0203095c281a8bcc9fd811e2c42e1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Mikhail Shvetsov&lt;/p&gt;
&lt;p&gt;use LREAL type, i've checked  up it works.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Real Data Type Range limitation</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/de0093c782/?limit=25#8e33" rel="alternate"/><published>2020-02-27T19:36:41.717000Z</published><updated>2020-02-27T19:36:41.717000Z</updated><author><name>RajeshGandhi</name><uri>https://forge.codesys.com/u/rajeshgandhi/</uri></author><id>https://forge.codesys.com4c4e47083ea78b34050a729af01bc9c39a56e184</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;We are using codesys as a development tool for GUI application. We developed a function that displays real data type value to user. We are facing problem of displaying / processing the real values after certain limit.&lt;/p&gt;
&lt;p&gt;For e.g refer the attached project.&lt;/p&gt;
&lt;p&gt;In the attached project we are adding two real values 33554442.5 + 2.5 and the result was 33554448.00, So could you please help us to get correct value 33554445.00.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Rajesh G&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>