Ints/doubles in my app convert themselves to "0" if no value is entered by the user in the view. To stop this from happening I use "= null" in my model.
Eg.
public double? Distance { get; set; } = null;
Is this considered an OK thing to do or is there a better way? Thanks!
Question is different from the one suggested as I'm specifically dealing with null values in the model.