REAL Type in NCL Programming
The REAL type is used to contain floating-point, or scientific notation, numbers in the range 10-70 to 1070.
12-1
The REAL type is used to contain floating-point, or scientific notation, numbers in the range 10-70 to 1070.
- External Form - Input
- + or -
- (Optional) Plus or minus sign.
- nnnnnn
- (Optional) Any number of digits.
- period (.)
- (Optional) Decimal place.
- mmmmmm
- (Optional) Any number of digits.
- Esxx
- (Optional) Signed exponent power of 10.
- Range: -99 to 99
nnnnnnandmmmmmmare present, and the resulting REAL number is within the allowable range.
Examples: External Form - Input
14578923455096765442839404 -123.567 .555 .0023E-23 3.142776589E+66
- External Form - Output
- Normalized decimal real number.
- + or -
- Plus or minus sign of the value.
- .
- Decimal place indicator.
- nnnnnn
- 15 significant fraction digits.
- Esxx
- Signed exponent power of 10.
Examples: External Form - Output
+.314277658900000E-10 -.123456789000000E+52
- Local Form and Behavior
- For IBM mainframes, local form is a 64-bit long floating-point value, and the component must be at least 8 bytes in length. Truncation is not allowed, but if the component has a fixed length greater than 8 bytes the value is left-aligned and padded on the right with zero bytes.