Decimal separator

Hello , how can i make decimal work with both separator comma (,) and dot(.)
espacially in percent field for exemple actually 10.05 work but 10,05 ignore and become 10.00
with dot

Capture d’écran du 2023-12-28 10-39-18

with comma

Capture d’écran du 2023-12-28 10-41-31

it become
Capture d’écran du 2023-12-28 10-47-27

any help please

Did you try System Settings ?

yes , but I want modify code to accept(allow) the both separator like i said for exemple field percent 10.25% or 10,25%

That’s not possible I think when you are entering the data in the form. But you can customize the print formats.

let x = "123,5"
y = x.replace( "," , "." )

could do it on keyUp in a client script (if you had to)

thanks but do you know where can i modify code in standard code source frappe because i want it for all field percent