I'm currently stuck with a stupid problem, tried multiple solutions but it's still not working...
I'm currently on an ASP.NET MVC project and one of my classes needs a decimal as type so I created it like that : public decimal level { get; set; }
Then when I need to create a new object that contains this attribut , I use this on my view : <input type="number" name="level" step="any" min="1"/>
I also tried with an editorFor but in both cases, I got this message :
The value '2.1' is not valid for level.
I've tried with 2.1 or 2,1 ( my culture is fr-FR) but both don't work and send the exact same error message... Can someone explains me why ?
Thanks in advance and have a nice day !