V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
finab
V2EX  ›  问与答

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

  •  
  •   finab · Oct 23, 2014 · 2894 views
    This topic created in 4217 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   ·   1564 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 16:32 · PVG 00:32 · LAX 09:32 · JFK 12:32
    ♥ Do have faith in what you're doing.