rxn.utilities.misc.get_multiplier

rxn.utilities.misc.get_multiplier(a, b)[source]

Get the multiplier m so that m * a == b.

Raises

ValueError – If b is not exactly a multiplier of a (possibly forwarded from get_multipliers).

Return type

int

Returns

multiplier for a.

Parameters
  • a (int) –

  • b (int) –