Forum


Calc Builder Support

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

Number Format = 1000 -> 1,000 ? 17.09.2012 15:07

Hello, thank you for such a good tool. It works great. I have just small issue with large numbers = comma does not show up after 3 digits. I set "Frontend Number format" in preferences, but when I fill form click on calculate, numbers show without commas. Could you please help me? Thank you

Re: Number Format = 1000 -> 1,000 ? 17.09.2012 15:50

Hello,
thank you for your feedback. When you change the front end format, you are configuring the number validator for user input. In order to show formatted output, you have to use number format function at the end of your calculator code, formatting your result as required, something like:

$yourresult=number_format($yourresult,2,'.',',');

Please find information about this function here:


http://www.php.net/manual/en/function.number-format.php

To check an example we suggest to download and import the example calculator '4 basic operations & formatting numbers',where you can see how different formatting are applied to the results.

Hope this helps, regards
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