Next Previous Up Contents
Next: Arithmetic
Up: Functions
Previous: Coords
Functions for coverting between strings and numeric values.
-
toString( value )
-
Turns a numeric value into a string.
-
value
(floating point): numeric value
-
parseByte( str )
-
Attempts to interpret a string as a byte (8-bit signed integer) value.
If the input string can't be interpreted in this way, a blank
value will result.
-
str
(String): string containing numeric representation
-
parseShort( str )
-
Attempts to interpret a string as a short (16-bit signed integer) value.
If the input string can't be interpreted in this way, a blank
value will result.
-
str
(String): string containing numeric representation
-
parseInt( str )
-
Attempts to interpret a string as an int (32-bit signed integer) value.
If the input string can't be interpreted in this way, a blank
value will result.
-
str
(String): string containing numeric representation
-
parseLong( str )
-
Attempts to interpret a string as a long (64-bit signed integer) value.
If the input string can't be interpreted in this way, a blank
value will result.
-
str
(String): string containing numeric representation
-
parseFloat( str )
-
Attempts to interpret a string as a float (32-bit floating point) value.
If the input string can't be interpreted in this way, a blank
value will result.
-
str
(String): string containing numeric representation
-
parseDouble( str )
-
Attempts to interpret a string as a double (64-bit signed integer) value.
If the input string can't be interpreted in this way, a blank
value will result.
-
str
(String): string containing numeric representation
-
toByte( value )
-
Attempts to convert the numeric argument to a
byte (8-bit signed integer) result.
If it is out of range, a blank value will result.
-
value
(floating point): numeric value for conversion
-
toShort( value )
-
Attempts to convert the numeric argument to a
short (16-bit signed integer) result.
If it is out of range, a blank value will result.
-
value
(floating point): numeric value for conversion
-
toInteger( value )
-
Attempts to convert the numeric argument to an
int (32-bit signed integer) result.
If it is out of range, a blank value will result.
-
value
(floating point): numeric value for conversion
-
toLong( value )
-
Attempts to convert the numeric argument to a
long (64-bit signed integer) result.
If it is out of range, a blank value will result.
-
value
(floating point): numeric value for conversion
-
toFloat( value )
-
Attempts to convert the numeric argument to a
float (32-bit floating point) result.
If it is out of range, a blank value will result.
-
value
(floating point): numeric value for conversion
-
toDouble( value )
-
Converts the numeric argument to a
double (64-bit signed integer) result.
-
value
(floating point): numeric value for conversion
Next Previous Up Contents
Next: Arithmetic
Up: Functions
Previous: Coords
STILTS - Starlink Tables Infrastructure Library Tool Set
Starlink User Note
256
STILTS web page:
http://www.starlink.ac.uk/stilts/
Author email:
m.b.taylor@bristol.ac.uk