Fixing the add(…) function to split integers and decimals apart, from a single value.