DoubleExtensions
StockSharp.Xaml.Charting.Common.Extensions
メソッド
RoundOff
internal static double RoundOff(double d, int decimals, MidpointRounding mode)
result = DoubleExtensions.RoundOff(d, decimals, mode)
演算(5ラウンドアップ)対称(ゼロから離脱)のラウンドを用いたラウンド
- d
- 丸めされるべき2倍の番号。
- decimals
- 返り値の重要な僅かな数字(精度)の数。
- mode
- ミッドポイントのラウンドモード
戻り値: 精度が小数に等しいDの一番近い番号。dが2つの数字の間に半分になられば、ゼロから離れた最も近い全数が返されます。