Implemented the binary operation on decimals.