Hi all,
I’m getting a “Incorrect floating point number” error message while inserting, editing or searching a field validated as float. If I use the standard english.json locale settings I get no error, even when I write a value without thousands separator, “100000” for instance (minus the quotes, naturally).
However, with my customized portuguese locale settings, I always get the error for that “100000” value, except if I write it using the english characters: “100,000”. No error there, BUT, my thousands separator is the space character and the error comes back if I write “100 000”.
My pt.json locale file is:
{
“date”: “2019-08-05”,
“version”: “16.0.0”,
“id”: “pt”,
“locale”: “pt_PT”,
“name”: “Portuguese (Portugal)”,
“desc”: “Portuguese (Portugal)”,
“author”: “Me”,
“decimal_point”: “,”,
“thousands_sep”: " ",
“mon_decimal_point”: “,”,
“mon_thousands_sep”: " ",
“currency_symbol”: “€”,
“positive_sign”: “”,
“negative_sign”: “-”,
“frac_digits”: 2,
“p_cs_precedes”: 0,
“p_sep_by_space”: 0,
“n_cs_precedes”: 0,
“n_sep_by_space”: 0,
“p_sign_posn”: 1,
“n_sign_posn”: 1,
“date_sep”: “-”,
“time_sep”: “:”,
“date_format”: “Ymd”,
“time_zone”: “Europe/Lisbon”
}
client side returns error when the space is used as thousands separator (100 000). It gives no error if I use no thousands separator (100000), but it that case the error is on the server side validation. The only way to pass both validations is to use the english thousands separator (100,000), but that is wrong for my locale settings.
I’d appreciate a solution for this. Cheers!