Forum
Calc Builder Support
Calc Builder supportForums
Public write access is disabled. Please login
Re: How can I make calcbuilder ignore commas 31.07.2012 22:47
Yes, you should get rid of them before executing operations, because numbers with commas are not valid numbers and that's why they are handled as 0 . Before going to the operations, parse user input this way at the beginning of your code:
$input1=str_replace(",","",$input1);
This will clean the $input1 number from the comma sign and can be used as a number afterwards.
Hope this helps,
Moonsoft Team
www.moonsoft.es
$input1=str_replace(",","",$input1);
This will clean the $input1 number from the comma sign and can be used as a number afterwards.
Hope this helps,
Moonsoft Team
www.moonsoft.es