With a browser, how do I know which decimal separator does the operating system use?

后端 未结 13 2146
不思量自难忘°
不思量自难忘° 2020-11-27 17:05

I\'m developing a web application.

I need to display some decimal data correctly so that it can be copied and pasted into a certain GUI application that

13条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-27 17:16

    I can guess the decimal separator from Accept-Language and the guess will be correct in 95% cases, but sometimes it fails.

    This is IMO the best course of action. In order to handle the failures, add a link to set it manually next to the display area.

提交回复
热议问题