I'm trying to find the best way to do following:
I have two Objects, object A and B. At some point in the program I know A and B are of type int, double or float. I would like to make an addition to them so A + B = C. C will be typed as we're used to while making addition between ints, floats, and doubles.
For example, if A was int and B float. Then C would be float.