next up previous contents
Next: Character Data Types Up: 2.2.10 Data Types Previous: Integer Data Types

Floating Point Data Types

 

A special case exists with respect to the value -0.0   (negative floating-point zero). This value is legal on those computers that use the IEEE 754   floating-point representation (e.g., most UNIX-based computers and the IBM PC) but is illegal on VAXes and DEC Alphas running OpenVMS. Attempting to use -0.0 will result in a reserved operand fault on a VAX and a high performance arithmetic fault on a DEC Alpha running OpenVMS. A warning is returned whenever -0.0 is read by an application on a VAX or DEC Alpha running OpenVMS. The CDF library can be put into a mode where -0.0 will be converted to 0.0 when detected (see Section 2.1.2). If -0.0 is not being converted to 0.0, the CDF toolkit programs are designed to display -0.0 in all cases. This includes those computers that normally suppress the negative sign.



cdfsupport@nssdca.gsfc.nasa.gov