小编Mad*_*dhu的帖子

C#中的指数

int trail = 14;
double mean = 14.00000587000000;
double sd = 4.47307944700000;

double zscore = double.MinValue;

zscore = (trail - mean) / sd; //zscore at this point is exponent value -1.3122950464645662E-06

zscore = Math.Round(zscore, 14); //-1.31229505E-06
Run Code Online (Sandbox Code Playgroud)

Math.Round()也保持指数值.应该zscore.ToString("F14")使用而不是Math.Round()函数将其转换为非指数值?请解释.

c# floating-point floating-accuracy

3
推荐指数
1
解决办法
376
查看次数

标签 统计

c# ×1

floating-accuracy ×1

floating-point ×1