As far as i see, there is no way to replace the decimal separator that the browser displays for non-integers(if you want them to always be a period or always a comma, regardless of the localization). These are the actions that the browser performs under the hood taking into account the browser language and localization. Details can be found here.
Localization of input type number
https://www.ctrl.blog/entry/html5-input-number-localization.html
Therefore, I had a need to at least consider what is currently displaying an input, period or comma, and depending on this, change the contents of the label. So, basically what i need is function or something else, that will tell me what decimal separator is displaying now.