java.lang.Math (JDK 1.0)
This class defines constants for the mathematical values e and pi, and defines static methods for floating-point trigonometry, exponentiation, and other operations. It is the equivalent of the C <math.h> functions. It also contains methods for computing minimum and maximum values and for generating pseudo-random numbers.
public final classMathextends Object { //No Constructor//Constantspublic static final doubleE; public static final doublePI; //Class Methodspublic static native doubleIEEEremainder(doublef1, doublef2); public static intabs(inta); public static longabs(longa); public static floatabs(floata); public static doubleabs(doublea); public static native doubleacos(doublea); public static native doubleasin(doublea); public static native doubleatan(doublea); public static native doubleatan2(doublea, doubleb); public static native doubleceil(doublea); public static native doublecos(doublea); public static native doubleexp(doublea); public static native doublefloor(doublea); public static native doublelog(doublea); public static intmax(inta, intb); public static longmax(longa, longb); public static floatmax(floata, floatb); public static doublemax(doublea, doubleb); public static intmin(inta, intb); public static longmin(longa, longb); public static floatmin(floata, floatb); public static doublemin(doublea, doubleb); public static native doublepow(doublea, doubleb); public static synchronized doublerandom(); public static native doublerint(doublea); public static intround(floata); public static longround(doublea); public static native doublesin(doublea); public static native doublesqrt(doublea); public static native doubletan(doublea); }