c# - 在 .NET Microframework 中找到三个 double 中最大的最有效方法?

标签 c# visual-studio embedded

我有三个 double :

double[] accel = new double[3]
        {
            _Razor.Accel_X,
            _Razor.Accel_Y,
            _Razor.Accel_Z,
        };

在 NETMF 中查找最大的最有效方法是什么?

最佳答案

double result = accel[0];
if (accel[1] > result) result = accel[1];
if (accel[2] > result) result = accel[2];
return result;

关于c# - 在 .NET Microframework 中找到三个 double 中最大的最有效方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3727698/

相关文章:

c# - asp.net mvc 3 Web 应用程序在部署后无法运行

c# - TreeView拖放帮助-_Invalid FORMATETC structure异常

c# - 如何在 C# Winforms 的 app.config 中保存配置

c# - 什么相当于 Visual Studio 2010 中的 Visual Studio 2008 对象测试台?

c - FRDM-KL46Z 内部引用时钟为 48 MHz?

c - 如何调试嵌入式进程?

c# - WithOptionalDependent 与 WithOptionalPrinciple - 最终答案?

c# - Unity 找不到 dll 引用

c# - 登录应用程序的问题

algorithm - 4位ECC算法