爱意满满的作品展示区。
doctorlai

把整数转换成英文

  •  
  •   doctorlai ·
    doctorlai · May 7, 2017 · 3314 views
    This topic created in 3318 days ago, the information mentioned may be changed or developed.
    10 replies    2017-05-09 05:27:54 +08:00
    wujunze
        1
    wujunze  
       May 7, 2017
    不错 感谢分享
    sunjourney
        2
    sunjourney  
       May 7, 2017
    感谢分享!
    taurenshaman
        3
    taurenshaman  
       May 8, 2017
    感谢分享!用 C#改了一下,适配 long (– 9,223,372,036,854,775,808 到 9,223,372,036,854,775,807 )和 ulong ( 0 到 18,446,744,073,709,551,615 ):
    https://github.com/taurenshaman/nodes/tree/master/Azure.Functions/nodes-math/Arabic-Numerals-To-English-Words
    taurenshaman
        4
    taurenshaman  
       May 8, 2017
    吐槽一下 short scale 和 long scale: https://en.wikipedia.org/wiki/Names_of_large_numbers
    QAPTEAWH
        5
    QAPTEAWH  
       May 8, 2017
    话说老外经常有神奇的念数字方法,比方说 1200 说成 twelve hundreds...
    doctorlai
        6
    doctorlai  
    OP
       May 8, 2017
    @QAPTEAWH 是的。 或者 2020 练成 twenty twenty. 我感觉在说电话号码的时候这种读法多一些。
    @taurenshaman 牛, 是的, 我看了 wiki 后才发现现在欧洲除了英国外 其它地方 million 是 9 个 0 不是 6 个 0
    doctorlai
        7
    doctorlai  
    OP
       May 8, 2017   ❤️ 1
    @taurenshaman 另:给你 github 上提了个 PR
    taurenshaman
        8
    taurenshaman  
       May 8, 2017
    @doctorlai thank you~~
    唉,第一个 PR 啊。。。。。
    doctorlai
        9
    doctorlai  
    OP
       May 8, 2017
    @taurenshaman 哈哈,是我的第二个。
    jedihy
        10
    jedihy  
       May 9, 2017
    刷题刷的不错啊
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2754 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 15:20 · PVG 23:20 · LAX 08:20 · JFK 11:20
    ♥ Do have faith in what you're doing.