finab
V2EX  ›  问与答

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

  •  
  •   finab · Oct 23, 2014 · 2957 views
    This topic created in 4252 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   ·   2829 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 96ms · UTC 12:30 · PVG 20:30 · LAX 05:30 · JFK 08:30
    ♥ Do have faith in what you're doing.