Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen

In some cases, you might like to change number of decimal places in your data. For this case can be used following transformation script:

java.text.DecimalFormat df = new java.text.DecimalFormat(".00")
return df.format(value('M_VALUE'))

Number of decimal values is defined in definition java.text.DecimalFormat(".00"). In this particular case, number of decimal values is set to 2.

Sv translation
languageja

いくつかのケースでは、あなたのデータ内の小数位の数量を変更することがある。この場合に以下の変換スクリプトを使用できる。

java.text.DecimalFormat df = new java.text.DecimalFormat(".00")
return df.format(value('M_VALUE'))

小数の数量はjava.text.DecimalFormat(".00")として定義される。この特定のケースでは、小数の数量は2に設定されてる。