How would you go about writing this function in C#?

I know this has to do with Mathf.Log, but my math is a little rusty. Any help would be great.
Mathf looks like it's for Unity. Unless you're using Unity, you probably want:
double x = 1 + (Math.log(v -s) / (10 * Math.log(2)));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With