This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes The In function Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "The In function" Watch "The In function" New topic

The In function

Shamsudeen Akanbi
Ranch Hand

Joined: Dec 24, 2010
Posts: 76
Hi guys, i've been trying out to get a function that does the In(x) pronounced "leen" x please help out with a correct one. Thanks in advance.
Tim Moores

Joined: Sep 21, 2011
Posts: 2409
What do you have so far? If you haven't started, what ideas have you had? (And keep in mind that it may not be clear to everybody what "leen" is - natural logarithm? But that's generally written as "ln", not "In".)
Matthew Brown

Joined: Apr 06, 2010
Posts: 4541

You're trying to write one? Or you're trying to find one? Check out java.lang.Math - there's a function there that does it.
I agree. Here's the link:
subject: The In function
It's not a secret anymore!