20.7
java.lang.Integer
THE PACKAGE JAVA.LANG
20.7.10
public float floatValue()
The
int
value represented by this
Integer
object is converted ( 5.1.2) to type
float
and the result of the conversion is returned.
Overrides the
floatValue
method of
Number
( 20.6.3).
20.7.11
public double doubleValue()
The
int
value represented by this
Integer
object is converted ( 5.1.2) to type
double
and the result of the conversion is returned.
Overrides the
doubleValue
method of
Number
( 20.6.4).
20.7.12
public static String toString(int i)
The argument is converted to signed decimal representation and returned as a
string, exactly as if the argument and the radix
10
were given as arguments to the
toString
method that takes two arguments ( 20.7.13).
20.7.13
public static String toString(int i, int radix)
The first argument is converted to a signed representation in the radix specified by
the second argument; this representation is returned as a string.
If the
radix
is smaller than
Character.MIN_RADIX
( 20.5.3) or larger than
Character.MAX_RADIX
( 20.5.4), then the value
10
is used instead.
If the first argument is negative, the first character of the result will be the
character
(
\u002d
). If the first argument is not negative, no sign character
appears in the result.
The remaining characters of the result represent the magnitude of the first
argument. If the magnitude is zero, it is represented by a single zero character
0
(
\u0030
); otherwise, the first character of the representation of the magnitude
will not be the zero character.The following ASCII characters are used as digits:
0123456789abcdefghijklmnopqrstuvwxyz
These are
\u0030
through
\u0039
and
\u0061
through
\u007a
. If the
radix
is
N
, then the first
N
of these characters are used as radix
N
digits in the
order shown. Thus, the digits for hexadecimal (radix 16) are
0123456789abcdef
.
If uppercase letters are desired, the
toUpperCase
method ( 20.12.36) of class
String
may be called on the result:
Integer.toString(n, 16).toUpperCase()
490
footer
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