0
How to force use the float method 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;
}
To call the method with the float arguments as I do?
I went through another way that I discovered that is Divide(10.0f, 10.3f);
– Amadeu Antunes
If you pass just like this Split(10.0, 10.0); falls in double
– Amadeu Antunes