beautypg.com

Integer function (int), 4 f o rm ulas – HEIDENHAIN ND 2100G User Manual

Page 189

background image

ND 2100G GAGE-CHEK

189

2.4 F

o

rm

ulas

Integer function (int)

The integer function is used to remove the fractional portion from a
term, leaving only the integer portion. The integer function does not
round mixed numbers. The fractional portion is removed. The Integer
function includes the integer value of a channel input, dimension or
collection of terms.

To insert the integer function:

U

Press the MATH... soft key

U

Press the INT dimension key

Parentheses for the term are provided.

Integer function, single value.

Integer function, collection of values.

Integer function syntax

A = int(term)

Example 1:

A = int(C1)

A = 2.000 mm

when C1 = 2.9732 mm

Example 2:

B = int(C2+2.71mm+C3)

B = 6.000 mm

when (C2 = 2.21 mm and C3 =
1.789 mm