Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
現在、以下のものを使用しています
String.format({0,16:e6},freq)
しかし、これは次の表記法で私の周波数を返します
0.000000e+000
私はそれが中にある必要があります
0.000000e+00
したがって、ゼロを1つ少なくして指数因子を減らす必要があります。誰もがこれを行う方法を知っていますか?
ありがとう
わかりました。これをどのように解決できるかを理解しました。@GSergからのコメントは正しいですが、回避策があります。
String.format("{0,16:0.000000e+00}",freq)
これが私が問題を解決した方法です。ご支援ありがとうございます。