Number's Exponential - Android java.lang

Android examples for java.lang:Math

Description

Number's Exponential

Demo Code


//package com.java2s;

public class Main {
    /**//from  w w w . j av  a2  s  .c  om
     * Number's Exponential
     * 
     * @param number
     *            float number
     * @return Returns the closest double approximation of the natural logarithm
     *         of the argument. The returned result is within 1 ulp (unit in the
     *         last place) of the real result.
     */
    public static float exponential(float number) {
        return (float) Math.exp(number);
    }
}

Related Tutorials