やあ
数値を四捨五入しようとしていますが、問題があります。 例えば。 私は番号.915と.915000021を持っています。私はpercisionとFixedDecを使用して、.915000021を.915に丸めようとしました。 ただし、precisionまたはFixed Decを使用した後、.915000021は変更されません。 これを変更する方法はありますか? また、このようなインスタンスは複数あるので、列を編集するのが私にとって最善の解決策です。
列をコピーし、数式を使用してすべてを丸めてから貼り付けて、元の列を削除できますか?
どんなアドバイスも評価されます。


JMP数値形式データの表示方法を変更しますが、基になる値は変更しません。 おそらく「Round()」関数が必要ですが、いつものように、データ値自体の変更には注意が必要です。 以下のコードをコピーしてスクリプトウィンドウに貼り付け、[編集]> [スクリプトの実行]を実行してから、数式の列を確認します。
New Table( "Formats and Rounding",
Add Rows( 10 ),
New Column( "Precise Value",
Numeric,
"Continuous",
Format( "Best", 12 ),
Formula( Random Normal() )
),
New Column( "Precise Value with 'Fixed Dec' Format",
Numeric,
"Continuous",
Format( "Fixed Dec", 12, 2 ),
Formula( :Precise Value )
),
New Column( "Precise Value with 'Precision' Format",
Numeric,
"Continuous",
Format( "Precision", 12, 2 ),
Formula( :Precise Value )
),
New Column( "Precise Value Rounded to 2 Decimal Places",
Numeric,
"Continuous",
Format( "Best", 12 ),
Formula( Round( :Precise Value, 2 ) )
)
)