[英]Excel Formula to JavaScript Conversion
I have the following formula in Excel 我在Excel中具有以下公式
=1-(B30^(EXP(D30-C30)))
where B30, D30 and C30 are cells. 其中B30,D30和C30是单元格。
I am converting it into JavaScript something like this 我正在将其转换为JavaScript这样的东西
result = 1 - (Math.pow(Math.exp(D30-C30), B30));
console.log(result);
The result is different in JavaScript output, with the exact same input values. JavaScript输出的结果不同,输入值完全相同。 If anyone please pointout what is wrong?
如果有人请指出出什么问题了?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.