Previous Topic: Arithmetic in NCL

Next Topic: Integer Arithmetic

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:

Note: Positive and negative real numbers that lie in the range +1E-70 down to -1E-70 are treated as 0.