Professional Documents
Culture Documents
Ariane 5
Ariane 5
Slides08.ppt
.1
-------8.1 :
.
.
&
.
. hardware
.
.. long int
short. ,
.
long short
if-else .. 32.768 32.767 .
.
Ariane 5, ,
. 4
.
39 2.5
o .
. .
64bit 16bit.
36.7
.
,
,
.
.
Ariane 4 ,
. Ariane 5
, .
import java.io.*;
class longtoshort {
public static void main(String[] args) {
try {
long verticalinput = Long.parseLong("0");
//
// short (16bit)
Short._VALUE Short.MIN_VALUE
if(verticalinput > Short.MAX_VALUE) { verticalinput=Short.MAX_VALUE;}
if(verticalinput < Short.MIN_VALUE) { verticalinput=Short.MIN_VALUE;}
// long(64 bit) short (16 bit)
short verticalshort = (short)(verticalinput);
System.out.println(" long short (16 bit ) : " + verticalshort);
}
catch (Exception e) {
System.out.println(" ! " + e);
}
}
}
Long(64bit) Short(16bit)
java.
short (16bit) 32767
-32767 ( 600.000 10.176) :
short :
2 .
.
.
*E_BV (Vertical) , E_BH (Horizontal).
1. http://www.around.com/ariane.html
2. http://en.wikipedia.org/wiki/Cluster_(spacecraft)