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.
私たちはフレックスプロジェクトに取り組んでいます
計算から得られた数値を指数形式で表示する必要があります。基本的に、80900を8.09 * 10^4として表示します。4.1e-4 as 4.1 * 10^-4など
文字列演算を行わずに、数値を取得して指数と仮数を分離できる簡単な方法。
ここでNumber.toExponential()説明されている方法を調べてみてください。
Number.toExponential()
これが役立つかどうかを確認します。
「カスタムフォーマッタを作成して、通常の数値形式を指数表記または2桁の小数桁の固定小数点表記に変更しましょう。」