DoubleExtensions

StockSharp.Xaml.Charting.Common.Extensions

方法

RoundOff
internal static double RoundOff(double d, int decimals, MidpointRounding mode)
result = DoubleExtensions.RoundOff(d, decimals, mode)

使用算术( 上行) 对称( 上行远离零) 的圆形

d
双数取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取取
decimals
返回值中显著分数(精确)的数目。
mode
中点四舍五入模式

返回值: 精确到小数点的最近数字 d。如果 d 介于两个数字之间,则返回离零最近的整数。