Mathematica > 数の表示 >

NumberForm

NumberForm[expr, n]
expr の近似実数を n 桁の精度で出力する.
  • NumberForm[expr, {n, f}]は,n 桁の近似実数を小数点以下 f 桁に出力する.
  • NumberFormは,整数ばかりでなく,近似実数にも機能する.
  • 以下のオプションを与えることができる.
DigitBlockInfinity区切り間の桁数
ExponentFunctionAutomatic指数部に適用する関数
ExponentStep1指数が増加する際のステップ数
NumberFormatAutomatic仮数,底,指数を組み合せるのに使う関数
NumberMultiplier"×"乗算を示すのに使う文字列
NumberPadding{"","0"}左右の充填に使う文字列
NumberPoint"."小数点を示す文字列
NumberSeparator{",", " "}小数点以上と以下との間に挿入する文字列
NumberSigns{"-",""}正負の数字を表す記号のために使う文字列
SignPaddingFalse符号の後に余白を入れるかどうか
  • NumberFormは,出力には影響を与えるが,評価には影響を与えない「包み込み」演算子として働く.
の数値近似の最初の10桁を表示する:
In[1]:=
Click for copyable input
Out[1]//NumberForm=
 
小数点の右側を3桁精度で4桁まで表示する:
In[1]:=
Click for copyable input
Out[1]//NumberForm=
バージョン 1 の新機能 | バージョン 3 での修正機能
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team