You're adding decimals together, not multiplying them.
For multiplication the code would need to change to:
return ( (val1 * 10) * (val2 * 10) ) / 100;
You're adding decimals together, not multiplying them.
For multiplication the code would need to change to:
return ( (val1 * 10) * (val2 * 10) ) / 100;