split integer/double arithmetics