
Math Class Method Summary
Note: All methods are static.
Return value Method name and argument list
dataTypeOfArg abs( arg )
returns the absolute value of the argument arg,which can be a
double,float,int, or long.
double log( double a )
returns the natural logarithm (in base e) of its argument.For
example,log(1) returns 0 and log(Math.E) returns 1.
dataTypeOfArgs max( argA, argB )
returns the larger of the two arguments.The arguments can be
doubles,floats,ints,or longs.
dataTypeOfArgs min( argA, argB )
returns the smaller of the two arguments.The arguments can be
doubles,floats,ints,or longs.
double pow( double base, double exp )
returns the value of base