I have a method
public void MyMethod(decimal val)
{
}
I want to call this method like this
MyMethod(4.6)
and it’s not happy, presumably, it’s thinking 4.6 is a double, not a decimal. What is a way to get it to recognize it as a decimal without having to go Convert.ToDecimal(4.6)
MyMethod(4.6m)