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

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

  •  
  •   finab · Oct 23, 2014 · 2872 views
    This topic created in 4206 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   ·   3080 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 14:22 · PVG 22:22 · LAX 07:22 · JFK 10:22
    ♥ Do have faith in what you're doing.