Fast integer computation of ceil(log10(exp2(e))) with 64-bit mantissa precision. The result is guaranted to be greater then log10(exp2(e)), which is irrational number.
assert(ceilLog10Exp2(ubyte(10)) == 4); // ubyte assert(ceilLog10Exp2(10U) == 4); // uint assert(ceilLog10Exp2(10UL) == 4); // ulong
See Implementation
Fast integer computation of ceil(log10(exp2(e))) with 64-bit mantissa precision. The result is guaranted to be greater then log10(exp2(e)), which is irrational number.