Name
java.lang.Math
Synopsis
This class is a much smaller counterpart to the J2SE
Math
class. Because J2ME does not support
floating-point variables, the class only provides six static methods
for determining the absolute value of an int
or a
long
, as well as the smaller (minimum) and larger
(maximum) of two int
or long
variables.
public final classMath
{ // static methods public static intabs
(int a); public static longabs
(long a); public static intmax
(int a, int b); public static longmax
(long a, long b); public static intmin
(int a, int b); public static longmin
(long a, long b); }
Get Wireless Java now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.