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.
私は変換しようとしています、例えば:
0.00282357936911 to 2.82e-03 and 0.000130076846614 to 1.30e-04
しかし、フィルターを使用すると{{ data|stringformat:"e" }}、
{{ data|stringformat:"e" }}
2.823579e-03 and 1.300768e-04
小数点以下2桁に切り上げる方法はありますか? よろしくお願いします。
次を使用できます。
{{ data|stringformat:".2e" }}
.<number>構文は小数点の数を指定します。詳細については、リファレンスを参照してください。
.<number>