oppiliappan / eva

a calculator REPL, similar to bc(1)
MIT License
823 stars 29 forks source link

Added log2 function #74

Closed blpsk closed 1 year ago

blpsk commented 1 year ago

To calculate the logarithm base 2 of a number, you currently have to use log(num, 2) function, which feels tiresome if used often.

This PR adds the log2(num) function.