finab
V2EX  ›  问与答

ios 开发如何原位显示 double 型数据

  •  
  •   finab · Oct 23, 2014 · 2965 views
    This topic created in 4256 days ago, the information mentioned may be changed or developed.
    %f %lf 会显示小数点后6位 不管实际是多少位

    我知道100W以下可以用 %g 来显示
    但是100W以上 %g 就会用科学技术法来显示了
    还有一种是nsnumberformatter
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1038 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 18:20 · PVG 02:20 · LAX 11:20 · JFK 14:20
    ♥ Do have faith in what you're doing.