Loan
ASP.NET Web API doesn't parse floating numbers with a '.'
Hi everyone, I have a quick question about ASP.NET
I am scratching my head over this for an hour now.
Why when I ask a simple float number in my controller and I give for exemple ''12.547" it does not get parsed and just returns to the calling client this response:
It might be a culture problem, because my computer is in french, and floating numbers are formatted like '12,547' for example.
But I did not find any way of telling ASP to use the en-US culture.
Any idea? Thank you so much.
4 replies