Qdr /


A value is the basic information usable in QDR Formulas. It can be expressed as a number (like "10") or can be the result of an operation (like "3 + 5"), or the result of a function (like "max(d6,d6)").

A value can hold up to three decimal values, but all the decimals are truncated in the final result (i.e. the formula "(2/3)+0.5" returns 1 and the formula "rup((2/3)+0.5)" will obviously return 2).

Each value in QDR is composed by a numeric (shown as the numeric result) and a label (shown as the extended result).

Let’s take in example the addition. It take two operands (right and left) that are two distinct values and generates a new value whose numeric is the sum of the numerics of the operands, and the label is the concatenation of the operands' labels separated by " + ". Thus, the formula "3 + 2" will sum two values: first value is composed by the numeric 3 and the label "3", second value is composed by the numeric 2 and the label "2". The result of the addition will be a new value composed by the numeric 5 and the label "3 + 2".

Functions and operators works with numerics and labels and each one generates a new value, whose numeric and label depends on the operation performed by the operator or the function.

Page last modified on September 09, 2015, at 04:06 PM