CoreBOSBB
Always six decimals in new coreBOS version curreny fields - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Development (https://discussions.corebos.org/forumdisplay.php?fid=18)
+--- Forum: coreBOS Development (https://discussions.corebos.org/forumdisplay.php?fid=4)
+--- Thread: Always six decimals in new coreBOS version curreny fields (/showthread.php?tid=479)



Always six decimals in new coreBOS version curreny fields - Guido1982 - 11-02-2016

I've discovered the new coreBOS versions always write six decimals to the database, despite the user settings. so € 500,00 always becomes € 500,000000. App stil functions, but it's kind of weird.


RE: Always six decimals in new coreBOS version curreny fields - joebordes - 11-04-2016

We now have up to 6 decimal precision. To support that all numbers are saved with 6 decimals and then shown to each user depending on their preferences. Internally we have to save them all because there could be users seeing that same number with a different amount of decimals.


RE: Always six decimals in new coreBOS version curreny fields - Guido1982 - 11-04-2016

Thanks. I learned as much from the gitter group. I'm in the process of adjusting my code to use the system native functions to calculation the user's precision.