<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>8 Jan 2015 10:59:00 Z</lastBuildDate><pubDate>7 Jan 2015 23:18:00 Z</pubDate><description>Hi,&#13;
&#13;
I have some odd behavior. When I save a record form a table then it gets saved with 4 digets instead of 2 as it should have . In the table the number has two digets ( currency format , table has mask defined by project)&#13;
&#13;
Ok, when saving the table a lot happens the rows are saved in several tables. Sometimes some calculations are done as well.&#13;
For instance if costs are added , specific leger functions specify if vat is to be calculated. Several vat percentages can apply. If Vat does apply a row is added with the calculated amout. For variables in the code I use the currencytype&#13;
&#13;
Should I use integer or real- for variables- instead of the currency type?&#13;
&#13;
It is verry irritating for now my checks ( to see if debet is equal to credit ) fire a fault because&#13;
for instance 72,52 is not equal to 72,5189&#13;
&#13;
In the analysis I stated that currency has two digits. In the code I made the variables of the currency type.&#13;
&#13;
My program is an accounting system. It has complete integration of ledger and accoutreceiveble etc. so this is a real showstopper.&#13;
&#13;
Has any of you had this odd behavior or know a solution?&#13;
&#13;
Regards&#13;
&#13;
Allard</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49783-4-decimals-instead-two-hyperfile/read.awp</link><title>4 decimals  instead of two in the hyperfile db ( wd 18 )</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/49783-4-decimals-instead-two-hyperfile-49794/read.awp</comments><pubDate>8 Jan 2015 10:59:00 Z</pubDate><description>Hi,&#13;
&#13;
Thanks Indeed a stupit question. when I read this posting I found out myself that it had to do with the vat calculation. …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49783-4-decimals-instead-two-hyperfile-49794/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49783-4-decimals-instead-two-hyperfile-49794/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49783-4-decimals-instead-two-hyperfile/read.awp">4 decimals  instead of two in the hyperfile db ( wd 18 )</source><title>Re: 4 decimals  instead of two in the hyperfile db ( wd 18 )</title></item><item><author>info</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49783-4-decimals-instead-two-hyperfile-49788/read.awp</comments><pubDate>8 Jan 2015 09:55:00 Z</pubDate><description>Hi Allard,&#13;
&#13;
I am also in the business of creating general ledger (accounting) software.&#13;
&#13;
There is a difference with the nati…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49783-4-decimals-instead-two-hyperfile-49788/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49783-4-decimals-instead-two-hyperfile-49788/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49783-4-decimals-instead-two-hyperfile/read.awp">4 decimals  instead of two in the hyperfile db ( wd 18 )</source><title>Re: 4 decimals  instead of two in the hyperfile db ( wd 18 )</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49783-4-decimals-instead-two-hyperfile-49793/read.awp</comments><pubDate>8 Jan 2015 09:42:00 Z</pubDate><description>Hi Allard&#13;
&#13;
To complete Steven message...&#13;
&#13;
You should NEVER use REALs... REAL have a built in flaw that makes them completely…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49783-4-decimals-instead-two-hyperfile-49793/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49783-4-decimals-instead-two-hyperfile-49793/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49783-4-decimals-instead-two-hyperfile/read.awp">4 decimals  instead of two in the hyperfile db ( wd 18 )</source><title>Re: 4 decimals  instead of two in the hyperfile db ( wd 18 )</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49783-4-decimals-instead-two-hyperfile-49792/read.awp</comments><pubDate>8 Jan 2015 09:37:00 Z</pubDate><description>Hi Allard,&#13;
what you are seeing is absolutely NORMAL.&#13;
The Currency type has ALWAYS a 6 decimal part - just to avoid (common) ro…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49783-4-decimals-instead-two-hyperfile-49792/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49783-4-decimals-instead-two-hyperfile-49792/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49783-4-decimals-instead-two-hyperfile/read.awp">4 decimals  instead of two in the hyperfile db ( wd 18 )</source><title>Re: 4 decimals  instead of two in the hyperfile db ( wd 18 )</title></item></channel></rss>
