7 integer, 8 rounding integer, Integer – Metrohm tiBase 1.1 User Manual

Page 59: Round integer (round)

Advertising
background image

■■■■■■■■■■■■■■■■■■■■■■

2 General program functions

tiBase 1.1

■■■■■■■■

51

2.4.4.5.7

Integer

Dialog window: Formula editor

Operators/Functions

Syntax
y = Int(number)

Gives the integer of the entered number.

Parameters
Number

The parameter can be indicated either directly as a number or as a variable
of the type Number. If the parameter does not correspond to the expec-
ted type, it will automatically be converted to this. If this is not possible,
the result of this operation is given as invalid.

Examples
Int(-55.325) = -55

Int('CV.AverageTemp') = Integer of the value of the common variable
CV.AverageTemp

2.4.4.5.8

Rounding integer

Dialog window: Formula editor

Operators/Functions

Syntax
y = Round(number)

Gives the rounded value of the entered number as a whole number.

Note

If the first decimal place is 5 or greater, the number is rounded up to
the next whole number (commercial rounding).

Parameters
Number

The parameter can be indicated either directly as a number or as a variable
of the type Number. If the parameter does not correspond to the expec-
ted type, it will automatically be converted to this. If this is not possible,
the result of this operation is given as invalid.

Examples
Round(-55.5259) = -56

Round('CV.AverageTemp') = Rounded value of the common variable
CV.AverageTemp

Advertising