<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>1 Nov 2016 10:42:00 Z</lastBuildDate><pubDate>31 Oct 2016 17:10:00 Z</pubDate><description>Hi all,&#13;
&#13;
I was under the impression that using currencies for calculations was the way to use (max.) six decimal places, but that does not seem to be necessarily so. I get a result with only four decimal places instead of the expected 6 decimals.&#13;
Now I have used numerics as intermediate fields and found it to be correct calculation. What causes the difference in the calculation of currencies?&#13;
&#13;
lcyKgPrijs = TblSlachtrapport.DEF_PrijsNoteringWeekprijs // 0.595&#13;
lcyBtwPerc = TblBtw.BTWPercentage // 6&#13;
lcyKgPrijsExcl = round(lcyKgPrijs / (100.0 + lcyBtwPerc) * 100.0, 6)&#13;
// lcyKgPrijsExcl is : 0.5613 --&gt; 4 decimals, but should be 6 decimals&#13;
&#13;
lnKgPrijs is numeric(5,7) = TblSlachtrapport.DEF_PrijsNoteringWeekprijs // 0.595&#13;
lnBtwPerc is numeric(5,7) = TblBtw.BTWPercentage // 6&#13;
lcyKgPrijsExcl = Round(lnKgPrijs / (100.0 + lnBtwPerc) * 100.0, 6)&#13;
// lcyKgPrijsExcl is : 0.561321 is OK&#13;
&#13;
Thanks for any hints.</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60185-wd19-calculation-with-rounding-6-decimals/read.awp</link><title>[WD19] Calculation with rounding on 6 decimals</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60185-wd19-calculation-with-rounding-6-decimals-60201/read.awp</comments><pubDate>1 Nov 2016 10:42:00 Z</pubDate><description>Hi Erik,&#13;
&#13;
thanks you for your explanation!&#13;
It makes clear what I have to do to make it work.</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60185-wd19-calculation-with-rounding-6-decimals-60201/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60185-wd19-calculation-with-rounding-6-decimals-60201/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60185-wd19-calculation-with-rounding-6-decimals/read.awp">[WD19] Calculation with rounding on 6 decimals</source><title>Re: [WD19] Calculation with rounding on 6 decimals</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60185-wd19-calculation-with-rounding-6-decimals-60200/read.awp</comments><pubDate>1 Nov 2016 09:43:00 Z</pubDate><description>oops:&#13;
&#13;
second step: 59.5/106 = 0.561321</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60185-wd19-calculation-with-rounding-6-decimals-60200/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60185-wd19-calculation-with-rounding-6-decimals-60200/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60185-wd19-calculation-with-rounding-6-decimals/read.awp">[WD19] Calculation with rounding on 6 decimals</source><title>Re: [WD19] Calculation with rounding on 6 decimals</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60185-wd19-calculation-with-rounding-6-decimals-60197/read.awp</comments><pubDate>1 Nov 2016 08:28:00 Z</pubDate><description>Sorry Allard for being not clear,&#13;
&#13;
DEF_PrijsNoteringWeekprijs is indeed defined as currency in the analysis. Also the other fi…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60185-wd19-calculation-with-rounding-6-decimals-60197/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60185-wd19-calculation-with-rounding-6-decimals-60197/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60185-wd19-calculation-with-rounding-6-decimals/read.awp">[WD19] Calculation with rounding on 6 decimals</source><title>Re: [WD19] Calculation with rounding on 6 decimals</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60185-wd19-calculation-with-rounding-6-decimals-60199/read.awp</comments><pubDate>1 Nov 2016 00:00:00 Z</pubDate><description>Hi Stefan,&#13;
&#13;
no miracle!&#13;
&#13;
currency has 6 Digits for the decimal part.&#13;
&#13;
your calculation first does: 0.595/106 -&gt; 0.00561320…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60185-wd19-calculation-with-rounding-6-decimals-60199/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60185-wd19-calculation-with-rounding-6-decimals-60199/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60185-wd19-calculation-with-rounding-6-decimals/read.awp">[WD19] Calculation with rounding on 6 decimals</source><title>Re: [WD19] Calculation with rounding on 6 decimals</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60185-wd19-calculation-with-rounding-6-decimals-60193/read.awp</comments><pubDate>31 Oct 2016 22:36:00 Z</pubDate><description>Hi,&#13;
&#13;
Is ths a currency : "DEF_PrijsNoteringWeekprijs"&#13;
&#13;
If so hwo is that field defined in the analysis?&#13;
&#13;
Maybe a currency …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60185-wd19-calculation-with-rounding-6-decimals-60193/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60185-wd19-calculation-with-rounding-6-decimals-60193/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60185-wd19-calculation-with-rounding-6-decimals/read.awp">[WD19] Calculation with rounding on 6 decimals</source><title>Re: [WD19] Calculation with rounding on 6 decimals</title></item></channel></rss>
