Next Previous Up Contents
Next: Formats
Up: General Functions
Previous: Maths
Functions for converting between strings and numeric values.
-
toString( value )
- Turns a numeric value into a string.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
toDouble( value )
- Converts the numeric argument to a
double (64-bit signed integer) result.
-
toHex( value )
- Converts the integer argument to hexadecimal form.
-
fromHex( hexVal )
- Converts a string representing a hexadecimal number to its
integer value.
Next Previous Up Contents
Next: Formats
Up: General Functions
Previous: Maths
TOPCAT - Tool for OPerations on Catalogues And Tables
Starlink User Note253
TOPCAT web page:
http://www.starlink.ac.uk/topcat/
Author email:
m.b.taylor@bristol.ac.uk
Mailing list:
topcat-user@bristol.ac.uk