Math: log(double doubleValue)
/* * Output: 2.5042189608203733 */ public class MainClass { public static void main(String args[]) { System.out.println(Math.log(12.234)); } }