DecimalExtensions

StockSharp.Xaml.Charting.Common.Extensions

メソッド

RoundOff
internal static decimal RoundOff(decimal d, int decimals, MidpointRounding mode)
result = DecimalExtensions.RoundOff(d, decimals, mode)

演算(5ラウンドアップ)対称(ゼロから離脱)のラウンドを用いたラウンド

d
丸めする決定番号。
decimals
返り値の重要な僅かな数字(精度)の数。
mode
ミッドポイントのラウンドモード

戻り値: 精度が小数に等しいDの一番近い番号。dが2つの数字の間に半分になられば、ゼロから離れた最も近い全数が返されます。