.NET Framework 3.5. I\'m trying to calculate the average of some pretty large numbers. For instance:
using System; using System.Linq; class Program {
For two positive numbers (or two negative numbers) , I found a very elegant solution from here.
where an average computation of (a+b)/2 can be replaced with a+((b-a)/2.
(a+b)/2
a+((b-a)/2