<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Wrong mathematics</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a136fc5174/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a136fc5174/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/a136fc5174/</id><updated>2020-02-27T13:51:02.761000Z</updated><subtitle>Recent posts to Wrong mathematics</subtitle><entry><title>Wrong mathematics</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a136fc5174/?limit=25#85f2" rel="alternate"/><published>2020-02-27T13:51:02.761000Z</published><updated>2020-02-27T13:51:02.761000Z</updated><author><name>PhilipLykov</name><uri>https://forge.codesys.com/u/philiplykov/</uri></author><id>https://forge.codesys.com89f1059cd301015e43f6cd22dab7a53396b4f258</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I find out the problem: 255 is not a 256 and all calculations was done in integer type.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Wrong mathematics</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a136fc5174/?limit=25#79fc" rel="alternate"/><published>2020-02-27T13:51:02.330000Z</published><updated>2020-02-27T13:51:02.330000Z</updated><author><name>PhilipLykov</name><uri>https://forge.codesys.com/u/philiplykov/</uri></author><id>https://forge.codesys.comcfaf708cb99b04c35a4a8826945cdc5e019b9dc7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I studied math at school. &lt;br/&gt;
Unfortunately the operations order doesn't mater here. I believe the problem somewhere in data types.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Wrong mathematics</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a136fc5174/?limit=25#0bfe" rel="alternate"/><published>2020-02-27T13:51:02.201000Z</published><updated>2020-02-27T13:51:02.201000Z</updated><author><name>learnetk</name><uri>https://forge.codesys.com/u/learnetk/</uri></author><id>https://forge.codesys.com684299cdae8cd0a0cc15398ed6f7cce7bd990e21</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;see this ..could help&lt;br/&gt;
&lt;a class="" href="https://www.mathsisfun.com/operation-order-bodmas.html" rel="nofollow"&gt;https://www.mathsisfun.com/operation-order-bodmas.html&lt;/a&gt; m &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Wrong mathematics</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a136fc5174/?limit=25#5408" rel="alternate"/><published>2020-02-27T13:51:02.071000Z</published><updated>2020-02-27T13:51:02.071000Z</updated><author><name>PhilipLykov</name><uri>https://forge.codesys.com/u/philiplykov/</uri></author><id>https://forge.codesys.com78f52221d178188af8c12041019853e41cac7a7e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;VAR&lt;br/&gt;
outR: UDINT;&lt;br/&gt;
END_VAR&lt;/p&gt;
&lt;p&gt;outR:=1024/255&lt;em&gt;255&lt;/em&gt;100/100;&lt;/p&gt;
&lt;p&gt;Why outR = 1020 but not 1024?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>