I'm adding two number fields together and then passing the total to a hidden field. The problem is if I subtract 10,000 from 100,000 the value returned is 90. However, if I subtract 400,100 from 456,834 it returns the correct value of 56,734.
Code is as follows:
//equity valuation
$home_worth = $_POST["input_64"];
$home_owed = $_POST["input_65"];
$equity = $home_worth - $home_owed;
$_POST["input_69"] = $equity;
I know this has more to do with php than gravity forms but a hand in solving this would be appreciated.