✅ Addition with integers and floating point numbers
namespace Calculator.Model{ // The class for Addition "+". public class Addition { public static int Add(int number1, int number2) { } }}
namespace Calculator.Model{ // The class for Addition "+". public class Addition { public static int Add(int number1, int number2) { } }}
If i were to create this method, and someone would use a floating point number instead of an int. Would this method break? And if so, is there a way around this?