Returns the base 2 logarithm of a number (can be in Bangla or English digits).
Number (Bangla or English digits).
If true, returns the result in English digits. Default is false (returns Bangla digits).
The base 2 logarithm of a (rounded to 12 decimal places).
a
log2("২"); // returns "১"log2(2, true); // returns "1"log2("৮", true); // returns "3"log2("১৬"); // returns "৪" Copy
log2("২"); // returns "১"log2(2, true); // returns "1"log2("৮", true); // returns "3"log2("১৬"); // returns "৪"
If the input is invalid or not a number.
Returns the base 2 logarithm of a number (can be in Bangla or English digits).