How to force use the method with float instead of the double method?
public static void Dividir(double dividendo, double divisor)
{
//https://www.codeproject.com/Tips/579137/Division-By-Zero-Doesnt-Always-Raise-An-Exception
if (divisor == 0)
throw new DivideByZeroException();
}
public static void Dividir(float dividendo, float divisor)
{
var resultado = dividendo / divisor;
}
I want to call the method with float arguments how do I?