Search code examples
javamathlogarithm

What is equivalent for logf from C in JAVA?


What is equivalent for logf from C in JAVA? Using math.h I have:

logf (extern float logf _PARAMS((float));) 

I want use float in JAVA.

Thank you for your advice and help!


Solution

  • java.lang.Math.log(double a)

    Given it does not use floats, but instead doubles. There is not native java support for logs on a float level.