Forum
Calc Builder Support
Calc Builder supportForums
No se permite escribir sin estar logado. Por favor, login
Re: 2 Digits Result 06.12.2011 11:59
Hello,
to format numbers before showing the results, you should use number_format function, where you can specify number of decimals and decimal/thousand separators. Usually this should be done at the last lines of the code, when all math is finished. To check an example we suggest to download and import the example calculator '4 basic operations & formatting numbers' here:
http://components.moonsoft.es/downloadcalcbuilder
where you can see how different formatting are applied to the results.
Hope this helps, best regards
Moonsoft Team
Moonsoft Team
www.moonsoft.es
to format numbers before showing the results, you should use number_format function, where you can specify number of decimals and decimal/thousand separators. Usually this should be done at the last lines of the code, when all math is finished. To check an example we suggest to download and import the example calculator '4 basic operations & formatting numbers' here:
http://components.moonsoft.es/downloadcalcbuilder
where you can see how different formatting are applied to the results.
Hope this helps, best regards
Moonsoft Team
Moonsoft Team
www.moonsoft.es