Depending on the value of op, molecular formula x is either multiplied by numeric y (op = *) or integer divided (op = %/% or /). y is always cast to integer.

mul_div_mol_form(op, x, y)

Arguments

op

Operator.

x

Left operand.

y

Right operand.

Value

A molecular formula resulting from the binary operation.