/usr/share/doc/stilts/sun256/uk.ac.starlink.ttools.func.Conversions.html is in stilts-doc 3.1.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="sun-style.css">
<title>Conversions</title>
</head>
<body>
<hr>
<a href="uk.ac.starlink.ttools.func.CoordsDegrees.html">Next</a> <a href="uk.ac.starlink.ttools.func.CoordsRadians.html">Previous</a> <a href="staticMethods.html">Up</a> <a href="index.html">Contents</a> <br> <b>Next: </b><a href="uk.ac.starlink.ttools.func.CoordsDegrees.html">CoordsDegrees</a><br>
<b>Up: </b><a href="staticMethods.html">Functions</a><br>
<b>Previous: </b><a href="uk.ac.starlink.ttools.func.CoordsRadians.html">CoordsRadians</a><br>
<hr>
<h4><a name="uk.ac.starlink.ttools.func.Conversions">10.5.13 Conversions</a></h4>
<p>Functions for converting between strings and numeric values.</p>
<p>
<dl>
<dt><strong><code>toString( fpVal )</code></strong></dt>
<dd>Turns a numeric value into a string.
<ul>
<li><code>fpVal</code> <em>(floating point)</em>: floating point numeric value
</li>
<li>return value <em>(String)</em>: a string representation of <code>fpVal</code></li>
</ul>
</dd>
<dt><strong><code>toString( intVal )</code></strong></dt>
<dd>Turns an integer numeric value into a string.
<ul>
<li><code>intVal</code> <em>(long integer)</em>: integer numeric value
</li>
<li>return value <em>(String)</em>: a string representation of <code>intVal</code></li>
</ul>
</dd>
<dt><strong><code>toString( charVal )</code></strong></dt>
<dd>Turns a single character value into a string.
<ul>
<li><code>charVal</code> <em>(char)</em>: character numeric value
</li>
<li>return value <em>(String)</em>: a string representation of <code>charVal</code></li>
</ul>
</dd>
<dt><strong><code>toString( byteVal )</code></strong></dt>
<dd>Turns a byte value into a string.
<ul>
<li><code>byteVal</code> <em>(byte)</em>: byte numeric value
</li>
<li>return value <em>(String)</em>: a string representation of <code>byteVal</code></li>
</ul>
</dd>
<dt><strong><code>toString( booleanVal )</code></strong></dt>
<dd>Turns a boolean value into a string.
<ul>
<li><code>booleanVal</code> <em>(boolean)</em>: boolean value (true or false)
</li>
<li>return value <em>(String)</em>: a string representation of <code>booleanVal</code>
("<code>true</code>" or "<code>false</code>")
</li>
</ul>
</dd>
<dt><strong><code>toString( objVal )</code></strong></dt>
<dd>Turns any object value into a string.
As applied to existing string values this isn't really useful,
but it means that you can apply <code>toString</code>
to any object value without knowing its type
and get a useful return from it.
<ul>
<li><code>objVal</code> <em>(Object)</em>: non-primitive value
</li>
<li>return value <em>(String)</em>: a string representation of <code>objVal</code></li>
</ul>
</dd>
<dt><strong><code>parseByte( str )</code></strong></dt>
<dd>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.
<ul>
<li><code>str</code> <em>(String)</em>: string containing numeric representation
</li>
<li>return value <em>(byte)</em>: byte value of <code>str</code></li>
</ul>
</dd>
<dt><strong><code>parseShort( str )</code></strong></dt>
<dd>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.
<ul>
<li><code>str</code> <em>(String)</em>: string containing numeric representation
</li>
<li>return value <em>(short integer)</em>: byte value of <code>str</code></li>
</ul>
</dd>
<dt><strong><code>parseInt( str )</code></strong></dt>
<dd>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.
<ul>
<li><code>str</code> <em>(String)</em>: string containing numeric representation
</li>
<li>return value <em>(integer)</em>: byte value of <code>str</code></li>
</ul>
</dd>
<dt><strong><code>parseLong( str )</code></strong></dt>
<dd>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.
<ul>
<li><code>str</code> <em>(String)</em>: string containing numeric representation
</li>
<li>return value <em>(long integer)</em>: byte value of <code>str</code></li>
</ul>
</dd>
<dt><strong><code>parseFloat( str )</code></strong></dt>
<dd>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.
<ul>
<li><code>str</code> <em>(String)</em>: string containing numeric representation
</li>
<li>return value <em>(floating point)</em>: byte value of <code>str</code></li>
</ul>
</dd>
<dt><strong><code>parseDouble( str )</code></strong></dt>
<dd>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.
<ul>
<li><code>str</code> <em>(String)</em>: string containing numeric representation
</li>
<li>return value <em>(floating point)</em>: byte value of <code>str</code></li>
</ul>
</dd>
<dt><strong><code>toByte( value )</code></strong></dt>
<dd>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.
<ul>
<li><code>value</code> <em>(floating point)</em>: numeric value for conversion
</li>
<li>return value <em>(byte)</em>: <code>value</code> converted to type byte
</li>
</ul>
</dd>
<dt><strong><code>toShort( value )</code></strong></dt>
<dd>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.
<ul>
<li><code>value</code> <em>(floating point)</em>: numeric value for conversion
</li>
<li>return value <em>(short integer)</em>: <code>value</code> converted to type short
</li>
</ul>
</dd>
<dt><strong><code>toInteger( value )</code></strong></dt>
<dd>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.
<ul>
<li><code>value</code> <em>(floating point)</em>: numeric value for conversion
</li>
<li>return value <em>(integer)</em>: <code>value</code> converted to type int
</li>
</ul>
</dd>
<dt><strong><code>toLong( value )</code></strong></dt>
<dd>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.
<ul>
<li><code>value</code> <em>(floating point)</em>: numeric value for conversion
</li>
<li>return value <em>(long integer)</em>: <code>value</code> converted to type long
</li>
</ul>
</dd>
<dt><strong><code>toFloat( value )</code></strong></dt>
<dd>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.
<ul>
<li><code>value</code> <em>(floating point)</em>: numeric value for conversion
</li>
<li>return value <em>(floating point)</em>: <code>value</code> converted to type float
</li>
</ul>
</dd>
<dt><strong><code>toDouble( value )</code></strong></dt>
<dd>Converts the numeric argument to a
double (64-bit signed integer) result.
<ul>
<li><code>value</code> <em>(floating point)</em>: numeric value for conversion
</li>
<li>return value <em>(floating point)</em>: <code>value</code> converted to type double
</li>
</ul>
</dd>
<dt><strong><code>toHex( value )</code></strong></dt>
<dd>Converts the integer argument to hexadecimal form.
<ul>
<li><code>value</code> <em>(long integer)</em>: integer value
</li>
<li>return value <em>(String)</em>: hexadecimal representation of <code>value</code></li>
</ul>
</dd>
<dt><strong><code>fromHex( hexVal )</code></strong></dt>
<dd>Converts a string representing a hexadecimal number to its
integer value.
<ul>
<li><code>hexVal</code> <em>(String)</em>: hexadecimal representation of value
</li>
<li>return value <em>(integer)</em>: integer value represented by <code>hexVal</code></li>
</ul>
</dd>
</dl>
</p>
<hr><a href="uk.ac.starlink.ttools.func.CoordsDegrees.html">Next</a> <a href="uk.ac.starlink.ttools.func.CoordsRadians.html">Previous</a> <a href="staticMethods.html">Up</a> <a href="index.html">Contents</a> <br> <b>Next: </b><a href="uk.ac.starlink.ttools.func.CoordsDegrees.html">CoordsDegrees</a><br>
<b>Up: </b><a href="staticMethods.html">Functions</a><br>
<b>Previous: </b><a href="uk.ac.starlink.ttools.func.CoordsRadians.html">CoordsRadians</a><br>
<hr><i>STILTS - Starlink Tables Infrastructure Library Tool Set<br>Starlink User Note256<br>STILTS web page:
<a href="http://www.starlink.ac.uk/stilts/">http://www.starlink.ac.uk/stilts/</a><br>Author email:
<a href="mailto:m.b.taylor@bristol.ac.uk">m.b.taylor@bristol.ac.uk</a><br>Mailing list:
<a href="mailto:topcat-user@jiscmail.ac.uk">topcat-user@jiscmail.ac.uk</a><br></i></body>
</html>
|