Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Math.E - what exactly is it?

  1. #1
    Junior Member
    Join Date
    Mar 2012
    Thanked 0 Times in 0 Posts

    Default Math.E - what exactly is it?

    Hey everyone,

    What is Math.E and how can it be used? I've heard it has something to do with "logarithms" but I'm not quite sure what that is either.

    Many thanks,

  2. #2

  3. #3
    Junior Member
    Join Date
    Jul 2012
    Thanked 1 Time in 1 Post

    Default Re: Math.E - what exactly is it?

    This is a constant value that is stored in the Math class;
    Example: the PI is also a standart constant look references to math constants
    class Math
        static double E = 2.718...;
        static double PI = 3.141596535...;
    Maybe your looking for the exponent method ?
    Here are methods that are int the Math class with description:
    abs(type a) – returns the absolute value of the type(double, float, long, int)
    exp(double exponent) – e^exponent. Returns double
    sqrt(double a) – returns the square root of the given double
    log(double a) – returns the natural log of a
    log10(double a) – returns the base 10 log of a
    ceil(double a) – rounds up to the nearest whole int
    floor(double a) – rounds down to the nearest whole int
    pow(double base, double exponent) – guess what this does? Yep, raises the base to the exponent

  4. The Following User Says Thank You to Eldarmk2 For This Useful Post:

    RedCloudTsunami (July 10th, 2012)

Similar Threads

  1. [SOLVED] Help with Math.tan and Math.atan
    By Dr.Code in forum Algorithms & Recursion
    Replies: 6
    Last Post: July 2nd, 2012, 05:54 AM
  2. Math.pow
    By britton33 in forum What's Wrong With My Code?
    Replies: 30
    Last Post: July 1st, 2012, 04:42 PM
  3. For the Math Majors
    By mszyndlar in forum Java Theory & Questions
    Replies: 0
    Last Post: October 18th, 2011, 04:40 PM
  4. Confusion with Math.toDegrees() and Math.toRadians(). Please help.
    By marksquall in forum Java Theory & Questions
    Replies: 3
    Last Post: June 23rd, 2011, 01:28 AM
  5. Math Drill
    By Java Neil in forum What's Wrong With My Code?
    Replies: 11
    Last Post: February 5th, 2011, 12:12 AM