Functions for converting between strings and numeric values.
toString( fpVal )
fpVal
(floating point): floating point numeric value
fpVal
toString( intVal )
intVal
(long integer): integer numeric value
intVal
toString( charVal )
charVal
(char): character numeric value
charVal
toString( byteVal )
byteVal
(byte): byte numeric value
byteVal
toString( booleanVal )
booleanVal
(boolean): boolean value (true or false)
booleanVal
("true
" or "false
")
toString( objVal )
toString
to any object value without knowing its type
and get a useful return from it.
objVal
(Object): non-primitive value
objVal
parseByte( str )
str
(String): string containing numeric representation
str
parseShort( str )
str
(String): string containing numeric representation
str
parseInt( str )
str
(String): string containing numeric representation
str
parseLong( str )
str
(String): string containing numeric representation
str
parseFloat( str )
str
(String): string containing numeric representation
str
parseDouble( str )
str
(String): string containing numeric representation
str
toByte( value )
value
(floating point): numeric value for conversion
value
converted to type byte
toShort( value )
value
(floating point): numeric value for conversion
value
converted to type short
toInteger( value )
value
(floating point): numeric value for conversion
value
converted to type int
toLong( value )
value
(floating point): numeric value for conversion
value
converted to type long
toFloat( value )
value
(floating point): numeric value for conversion
value
converted to type float
toDouble( value )
value
(floating point): numeric value for conversion
value
converted to type double
toHex( value )
value
(long integer): integer value
value
toHex(42) = "2a"
fromHex( hexVal )
hexVal
(String): hexadecimal representation of value
hexVal
fromHex("2a") = 42