@@7 Calculation field definition
The @@7 function can be used in panel fields to perform simple calculations such as plus, minus, multiply and divide. Nevertheless, possible rounding off errors may occur under these circumstances. We recommend that you avoid use of the REAL format whenever possible.
If you use dates in your calculations, then specify the dates in seconds use an [~] instead of a [^]. For further detail refer to Example number 2 shown below.
Syntax
Receiving field
To define the field to which data is transferred, you can use the field number or field reference.
X (first calculation number)
Operator
The operator can be P (plus), M (minus), G (multiply) or D (divide).
Y (second calculation number)
Example 1
@@7;14;`50DK750;
$625_________________~136______&_________`29______.&^56____"56__^57____"57__ù65:__ù22_:__&*70*125&$385_________&$171_______&`____&
The value in the field with offset `50 is divided with the constant 750. The result of the calculation is placed in field 14 shown below:
Example 2
@@7;16;~56M~37DK3600;
$625_________________~136______$269_________&^107___"107_&*__181&^56____"56__ù65:__&$159_________&*70*125$_129&_^37____"37__&~________&
The two dates are subtracted and the result is given in number of hours.