C#函数查找两个数的增量 [英] C# function to find the delta of two numbers

查看:98
本文介绍了C#函数查找两个数的增量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想知道如果有什么内置在.NET Framework中,我可以很方便地返回两个数字之间的增量?我写代码,做这一点,但它听起来像的东西,应该是已经的框架。


解决方案

 三角洲= Math.Abs​​(A  -  b); 


I just wanted to know if there's anything built into the .net framework where I can easily return the delta between two numbers? I wrote code that does this but it sounds like something that should be in the framework already.

解决方案

delta = Math.Abs(a - b);

这篇关于C#函数查找两个数的增量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆