I have a set of nullable decimal properties that are decorated with a Range validation attribute with values -40.00 to +40.00 but when a user inputs a positive value with a leading positive(+) sign, the validation returns a false result displaying the error message. Yet a value of -1.50 will return a true validation result as it should.
The leading plus(+) sign cannot be removed as it is a business rule.
[Display(ResourceType = typeof(Translation), Name = "Profit_Q1")]
[Range(-40.00, +40.00)]
public decimal? profit_q1{ get; set; }
Any workarounds or am I doing something wrong? I have searched online and on stack and but cannot seem to find even a remotely similar answer.