Hello, any recommendation on how to use ',' as decimal separator. Currently BE automatically converts 99,99 to 9999.00
5 Answer(s)
-
0
Hi @mirzanas, are you using Anuglar or jQuery version of ANZ?
You should format the number at client side (javascript) when displaying the value
-
0
Hey, i am using angular.
I am formatting number at client side as well i can see in browser network tab what a request contains correct value e.g. price: "99,99", but when BE receives it the value is 9999.00.
As I understood a default model binder do this trick. Do you have any recommendation on how to overcome this issue?
-
0
Hi @mirzanas
Have you figured out a solution ?
-
0
Hi, @mirzanas, if your network request is sending "99,999" and your BE received 99999.00, this means that you are sending
string
in your network request where your BE is expecting it to bedecimal
. Asp.Net model binding will covert thestring
intodecimal
(because your BE model is expecting it asdecimal
) if the string is a number -
0
Ok, thanks.