Forum


Calc Builder Support

Calc Builder support
Forums
Public write access is disabled. Please login

comma formatting 18.10.2011 21:45

Hello,

You can write me how to change that by introducing the data you could use a comma?



When you enter a data from a comma, eg 5,40 * 5,30 the result is different than when I enter 5.40 * 5.30.

In my commonly used commas.

Re: comma formatting 18.10.2011 21:45

Hello,
if your users introduce commas when writting numbers, you should format the numbers before starting math to provide correct numbers to php functions. We suggest starting using
str_replace

function to replace all commas introduced at input for dots.

Then you could make all calculations.

And you could show results formatted as your users expect to see the numbers using number_format to specify thousand and decimal separators.


Hope this helps
Moonsoft Team
www.moonsoft.es
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect
FaLang translation system by Faboba

Our clients' feedback