NonStop Server for Java Programmer's Reference (NSJ 4.0+)
Table Of Contents

POSIX Threads
NonStop Server for Java 4 uses Standard POSIX Threads (product number T1248), which conforms to IEEE
POSIX Standard 1003.lc. NonStop Server for Java 4 does not use the POSIX threads SRL; instead,
NonStop Server for Java 4 contains its own version of POSIX threads. The header files for this version of
POSIX threads can be found in the directory:
[install-dir]/java/include/oss
where install-dir is the NonStop Server for Java 4 installation directory.
IEEE Floating-Point Implementation
Java uses IEEE floating-point arithmetic.
Note:
In NonStop Server for Java 4, you cannot specify whether your Java classes use TNS
format.
●
The NonStop Server for Java 4 supports the representation of floating-point data on all
NonStop S-series servers except S700B and S70000 servers.
●
Incompatibilities between the IEEE floating point and TNS floating-point representations might cause loss of
precision or accuracy when you convert between TNS float or double and IEEE float or double.
This subsection explains the following subjects:
Floating-point values●
Double-precision values●
How to Call TNS Floating-Point Functions from JNI Code●
Floating-Point Values
For floating-point values, TNS floating-point representations have larger exponents (and therefore, a larger
range) than IEEE floating-point representations, but they are less precise, as the following table shows:
Floating-Point
Representation
Minimum Positive
Decimal Value
Maximum Decimal
Value
TNS 1.7272337e-77F 1.1579208e77F
IEEE 1.40239846e-45f 3.40282347e+38f
Double-Precision Values
For double-precision values, TNS floating-point representations have smaller exponents (and therefore, a
smaller range) than IEEE floating-point representations, but they are more precise, as the following table
shows: