<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to REAL_TO_STRING Taschenrechner</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/2c9c56a844/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/2c9c56a844/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Deutsch/thread/2c9c56a844/</id><updated>2020-02-28T01:06:20.924000Z</updated><subtitle>Recent posts to REAL_TO_STRING Taschenrechner</subtitle><entry><title>REAL_TO_STRING Taschenrechner</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/2c9c56a844/?limit=25#7550" rel="alternate"/><published>2020-02-28T01:06:20.924000Z</published><updated>2020-02-28T01:06:20.924000Z</updated><author><name>ATS</name><uri>https://forge.codesys.com/u/ats/</uri></author><id>https://forge.codesys.comefe957b71a8591e98a7fa94a95f74f8399b8923c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo,&lt;/p&gt;
&lt;p&gt;@Herr Schuster:&lt;/p&gt;
&lt;p&gt;Die Applikation ist ein Teil meiner Diplomarbeit. Deshalb werde ich die Applikation frühstens nach Abgabe und Benotung meiner Diplomarbeit online stellen.&lt;/p&gt;
&lt;p&gt;@SPSstudent:&lt;/p&gt;
&lt;p&gt;Danke vielmals!!!&lt;/p&gt;
&lt;p&gt;War echt ein super Link. Ich habe das Problem mit der Einbindung der OSCAT-Bibliothek gelöst. Mit der Funktion REAL_TO_STRF kann man gezielt die Ausgabe beinflussen. &lt;/p&gt;
&lt;p&gt;Grüße&lt;/p&gt;
&lt;p&gt;ATS&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>REAL_TO_STRING Taschenrechner</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/2c9c56a844/?limit=25#e3a9" rel="alternate"/><published>2020-02-28T01:06:15.979000Z</published><updated>2020-02-28T01:06:15.979000Z</updated><author><name>SPSstudent</name><uri>https://forge.codesys.com/u/spsstudent/</uri></author><id>https://forge.codesys.comc8c7dea34ce696c449f870d8670fee44ea84c4f4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Boris Schuster hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hallo ATS,&lt;br/&gt;
poste Deine Applikation doch, damit alle etwas davon haben.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Auch sVar:=REAL_TO_STRING(4.7) ergibt sVar=4.699999. Das liegt nicht am Programm.&lt;/p&gt;
&lt;p&gt;REAL-Zahlen sind ein bisschen Sonderzahlen, da die nicht als normale Kommazahl im Speicher stehen, sondern in Exponenten-Darstellung.&lt;/p&gt;
&lt;p&gt;Hier gab es dasselbe Problem: &lt;a class="" href="http://www.sps-forum.de/archive/index.php/t-19801.html" rel="nofollow"&gt;http://www.sps-forum.de/archive/index.php/t-19801.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Der Trick wäre, dass du nicht mit REAL, sondern mit Ganzzahlen arbeitest. Da musst du halt ein bisschen rumtricksen. Eine Möglichkeit wäre z.B., Vorkomma- und Nachkomma-Stellen als jeweils eine Ganzzahl zu bearbeiten. Oder so wie es in obigem Link beschrieben wird.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>REAL_TO_STRING Taschenrechner</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/2c9c56a844/?limit=25#5b3c" rel="alternate"/><published>2020-02-28T01:06:14.172000Z</published><updated>2020-02-28T01:06:14.172000Z</updated><author><name>bschuster</name><uri>https://forge.codesys.com/u/bschuster/</uri></author><id>https://forge.codesys.com1d3139edd26540f470c43bce9c64d480a1931a85</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo ATS,&lt;/p&gt;
&lt;p&gt;poste Deine Applikation doch, damit alle etwas davon haben.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>REAL_TO_STRING Taschenrechner</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/2c9c56a844/?limit=25#d2f5" rel="alternate"/><published>2020-02-28T01:06:09.093000Z</published><updated>2020-02-28T01:06:09.093000Z</updated><author><name>ATS</name><uri>https://forge.codesys.com/u/ats/</uri></author><id>https://forge.codesys.com219e2588fc2bae1a4cb8d387e0f6d2e8f60b697c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Anhang&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: FEHLER_TASCHENRECHNER.JPG" rel="nofollow" src="https://forum-de.codesys.com//download/file.php?id=388"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>REAL_TO_STRING Taschenrechner</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/2c9c56a844/?limit=25#266c" rel="alternate"/><published>2020-02-28T01:06:07.270000Z</published><updated>2020-02-28T01:06:07.270000Z</updated><author><name>ATS</name><uri>https://forge.codesys.com/u/ats/</uri></author><id>https://forge.codesys.com033ebe93163f3b0a98b1fe51f83411992fd81d46</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo Leute,&lt;/p&gt;
&lt;p&gt;ich habe in CoDeSys 3.3 einen Taschenrechner realisiert sowie visualisiert. Bin sehr begeistert, welche Möglichkeiten CoDeSys bietet.&lt;/p&gt;
&lt;p&gt;Allerdings habe ich ein kleines Problem. Wenn ich Zahlen &amp;lt; 1.8 mit einer anderen Zahl addiere, bekomme ich nicht das richtige Ergebnis.&lt;/p&gt;
&lt;p&gt;Bsp.: &lt;/p&gt;
&lt;p&gt;1.3 + 3 = 4.299999 statt 4.3&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;1.7 + 3 = 4.699999 statt 4.7&lt;/p&gt;
&lt;p&gt;1.8 + 3 = 4.8&lt;/p&gt;
&lt;p&gt;Da es um eine Visualisierung handelt, habe ich als Ausgabe und Eingabe den Datentyp STRING verwendet. &lt;/p&gt;
&lt;p&gt;Die Eingabe wird mit STRING_TO_REAL ohne Probleme konvertiert.&lt;/p&gt;
&lt;p&gt;Die Addition erfolgt in REAL. Das Ergebnis der Addition ist richtig, da die Addition in REAL stattfindet.&lt;/p&gt;
&lt;p&gt;Bei der Konvertierung REAL_TO_STRING habe ich im ONLINE-MODUS den FEHLER festhalten können. Siehe Anhang!&lt;/p&gt;
&lt;p&gt;Gibt es einen Trick, womit man dieses Problem beheben kann.&lt;/p&gt;
&lt;p&gt;mfg&lt;/p&gt;
&lt;p&gt;ats&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>