<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Deprecated TRUNC and REAL_TO_INT</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/95af6e6cd8/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/95af6e6cd8/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/95af6e6cd8/</id><updated>2020-02-27T20:39:03.435000Z</updated><subtitle>Recent posts to Deprecated TRUNC and REAL_TO_INT</subtitle><entry><title>Deprecated TRUNC and REAL_TO_INT</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/95af6e6cd8/?limit=25#4376" rel="alternate"/><published>2020-02-27T20:39:03.435000Z</published><updated>2020-02-27T20:39:03.435000Z</updated><author><name>Comingback4u</name><uri>https://forge.codesys.com/u/comingback4u/</uri></author><id>https://forge.codesys.com77fe5d8f62118c72228403b6e6ee456fd325fdb0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Trunc - Removes anything after the decimal.&lt;br/&gt;
Real_to_int - Rounds up if after decimal is &amp;gt;= 0.5.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Deprecated TRUNC and REAL_TO_INT</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/95af6e6cd8/?limit=25#86d9" rel="alternate"/><published>2020-02-27T20:38:59.610000Z</published><updated>2020-02-27T20:38:59.610000Z</updated><author><name>cwright</name><uri>https://forge.codesys.com/u/cwright/</uri></author><id>https://forge.codesys.com0d1416742ac22ded2a95a0f84c30e1678ae40c4c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In PLCOpen's &lt;a class="" href="http://www.plcopen.org/pages/pc2_training/before_downloading.htm" rel="nofollow"&gt;Coding Guidlines&lt;/a&gt;, section 5.28 says to avoid using deprecated features. Under Examples, it lists "Standard Function 'TRUNC.'" I assume that the preferred method at this point is to use a REAL_TO_INT conversion operator. Can someone elaborate on the differences, and why to use one over the other?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>