Arithmetic in NCL › About Arithmetic in NCL
About Arithmetic in NCL
Arithmetic NCL statements yield the mathematical result of a calculation and place it in a nominated variable.
Arithmetic is therefore performed as an explicit assignment operation. NCL arithmetic statements are simply a special type of assignment statement.
NCL supports simple or compound arithmetic expressions involving positive or negative numbers. NCL classifies numbers as follows:
- Real numbers that are whole numbers, or numbers containing a decimal fraction. Real numbers can be expressed using scientific notation. The range of numbers supported are those with positive absolute values not higher than +1E+70 and not less than +1E-70, and with negative absolute values not higher than -1E-70 and not less than -1E+70.
- Integer whole numbers only, which are a subset of the real number range, but are not expressed in scientific notation, and lie in the range +2147483647 to -2147483648.
Note: Positive and negative real numbers that lie in the range +1E-70 down to -1E-70 are treated as 0.
|
Copyright © 2010 CA.
All rights reserved.
|
|