20.11
java.lang.Math
THE PACKAGE JAVA.LANG
Special cases:
If the argument is NaN, the result is
0
.
If the argument is negative infinity, or indeed any value less than or equal to
the value of
Long.MIN_VALUE
 ( 20.7.1), the result is equal to the value of
Long.MIN_VALUE
.
If the argument is positive infinity, or indeed any value greater than or equal to
the value of
Long.MAX_VALUE
 ( 20.7.2), the result is equal to the value of
Long.MAX_VALUE
.
20.11.20
public static double random()
The result is a double value with positive sign, greater than or equal to zero but
less than
1.0
, chosen pseudorandomly with (approximately) uniform distribution
from that range.
When this method is first called, it creates a single new pseudorandom num 
ber generator, exactly as if by the expression
new java.util.Random()
This new pseudorandom number generator is used thereafter for all calls to
this method and is used nowhere else.
This method is properly synchronized to allow correct use by more than one
thread. However, if many threads need to generate pseudorandom numbers at a
great rate, it may reduce contention for each thread to have its own pseudorandom
number generator.
20.11.21
public static int abs(int a)
The result is the absolute value of the argument, if possible.
If the argument is not negative, the argument is returned.
If the argument is negative, the negation of the argument is returned. Note that
if the argument is equal to the value of
Integer.MIN_VALUE
 ( 20.7.1), the most
negative representable
int
 value, the result will be that same negative value.
20.11.22
public static long abs(long a)
The result is the absolute value of the argument, if possible.
If the argument is not negative, the argument is returned.
526






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved