log2 Summary Returns the base 2 logarithm for the specified value. Usage public static double log2(double x) Returns The base 2 logarithm of the specified value. If the specified value is negative, NaN is returned. If the specified value is zero, negative infinity is returned. Parameters x A positive number or zero to evaluate with. Description Returns the base 2 logarithm for the specified value. Mathematically, this would be represented as log2(x). Examples Basic Usage 123import System; Console.log(Math.log10(5)); Share HTML | BBCode | Direct Link