Chapter 5 : Using Processes

5.5. Mathematic Operation

 

 

 

General introduction

The Mathematic Operation process allows you to perform the following

 

operations on a variable:

 

 

Add

 

 

Substract

 

 

Multiply

 

 

Divide

 

 

Calculate the remainder after a division operation (%)

 

 

 

Mathematic

To perform an arithmetic operation on a variable, proceed as follows:

Operation

1

Add the process Mathematic Operation to your label program

 

2

In the Value 1 box, type or select the first variable or enter a

 

3

value to be the first part of the operation.

 

Click the operation to be performed on the data.

 

4

In the Value 2 box, type or select the second variable or enter a

 

5

value to be the second part of the operation.

 

Enter a value in the Integer box to indicate the number of integers

 

 

you want in the resulting number. A ‘5’ here will allow a maximum

 

6

number of 99999.

 

Enter a value in the Decimal box to indicate how many decimal

 

 

positions you want in the resulting number. A ‘2’ here will allow a

 

7

maximum decimal of 0.99.

 

In the Sign box, select the sign, if any, you want to precede the

 

8

resulting number.

 

In the Result Variable box, select or create the variable in which

 

9

you want to save the resulting number and click OK.

 

In the Output Format box select the special format, if any, that

 

 

you want applied to the resulting number. Select the Fill of your

 

 

choice:

 

 

ƒ Click Zeroes or Blank to fill the open spaces with zeroes or

 

 

blanks when the input data is smaller than the required input.

 

10

ƒ Click None if no fill is desired.

 

Click OK

Example

This example computes a total price by calculating a tax into a price.

 

This process formats the resulting variable with 5 integers with leading

 

blanks and 2 decimal positions.

www.mcl-collection.com

October 2007

Page 149

Copyright © 2007 • MCL Technologies • All Rights Reserved

 

 

Page 149
Image 149
Datamax v1.1x user manual Mathematic Operation