finab
V2EX  ›  问与答

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

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