If I run this in C#; it truncates to 6 and not 7... does C do an implicit round?
Broken down, you get this:
int toTest = 128;
var div = toTest / 3;
var sqrt = Math.Sqrt(div);
var logSqrt = Math.Log(sqrt);
var log2 = Math.Log(2);
var logDiv = logSqrt / log2;
var pow = Math.Pow(2, logDiv);
var result = pow * pow * 3;
int result2 = (int)Math.Pow(2, Math.Log(Math.Sqrt(128 / 3)) / Math.Log(2));
int total = result2 * result2 * 3;
this {Clusters.DAL.Tests.UtilitiesTests} Clusters.DAL.Tests.UtilitiesTests
toTest 128 int
div 42 int
sqrt 6.48074069840786 double
logSqrt 1.8688348091416842 double
log2 0.69314718055994529 double
logDiv 2.6961587113893803 double
pow 6.4807406984078613 double
result 126.00000000000004 double
result2 6 int
total 108 int