Are there cultures in which the decimal separator is longer than one character?

邮差的信 提交于 2019-12-11 07:55:23

问题


I must write a stringToNumber parsing function that can use custom strings for the following:

  • decimal separator (. for en-US => 3.1415)
  • thousands separator (, for en-US => 1,000,000)
  • positive sign (+ for en-US => +5)
  • negative sign (- for en-US => -5)

Can I assume that these are only one character (which would make the implementation easier) or are there any cultures in which any of these are longer?

来源:https://stackoverflow.com/questions/46538917/are-there-cultures-in-which-the-decimal-separator-is-longer-than-one-character

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!