I want to know how many decimals an input has to then use that information to aproximate the result of an operation to the same number of decimals. For example: