Mathematic operation, General introduction, Example – Datamax 123 Print v1.1x User Manual

Page 149

Advertising
background image

Copyright © 2007 • MCL Technologies • All Rights Reserved

www

.mcl-collection.com

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

Operation

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

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
value to be the first part of the operation.

3

Click the operation to be performed on the data.

4

In the Value 2 box, type or select the second variable or enter a
value to be the second part of the operation.

5

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
number of 99999.

6

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
maximum decimal of 0.99.

7

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

8

In the Result Variable box, select or create the variable in which
you want to save the resulting number and click OK.

9

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.

ƒ

Click None if no fill is desired.

10

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.



October 2007

Page

149

Advertising