Numbers with comma as decimal will save the number as string with the comma #4
Closed
12 of 17 tasks
Labels
bug
Something isn't working
Prerequisites
master
branch of yii2-number.Steps to reproduce the issue
The best way to reproduce is searching the NumberControl demo for "German Amount" and changing the input value, this will give the same result as in my code.
Still, here is how to get there by coding:
'radixPoint' => ','
Expected behavior and actual behavior
When I follow those steps, I see the number as a string with the comma as the decimal separator, i.e.:
"1234,01"
.I was expecting to get the number as a number, having decimals separated by a dot, i.e.:
1234.01
.Since the initial value passed to the widget is a number with dot as decimal separator, I expect to receive a number with a dot as decimal separator from the widget. Thus, keeping the data integrity.
Environment
Browsers
Operating System
Libraries
Isolating the problem
The text was updated successfully, but these errors were encountered: