beautypg.com

Metrohm tiamo 1.0 Manual User Manual

Page 66

background image

42

General program functions

Fraction

Syntax

y = Frac(number)

Returns the fractional part of the entered number.

Note

In the Result properties under Definition it is essential that the number of

Decimal

places

of the result is entered, as otherwise the decimal fraction cannot be

shown.

Parameter

Number

The parameter can either be entered directly as a number or as a Variable
of the type

Number

. If the parameter does not correspond to the selected

type then it will be automatically converted to it (see Type conversion
"TextToNumber"). If this is not possible then "

invalid

" will be returned as the

result of this operation.

Examples

Frac(-55.325) =0.325

Frac('CV.MeanTemp')

= value of the Common variable without sign

Integer

Syntax

y = Int(Number)

Returns the integer of the entered number.

Parameter

Number

The parameter can either be entered directly as a number or as a Variable

of the type

Number

. If the parameter does not correspond to the selected

type then it will be automatically converted to it (see Type conversion
"TextToNumber"). If this is not possible then "

invalid

" will be returned as the

result of this operation.

Examples

Int(-55.325) = -55

Int('CV.MeanTemp')

= integer part of the value of the Common variable

Round integer

Syntax

y = Round(Number)

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

Note
If the value to be rounded lies exactly between two whole numbers then it will be
rounded to the next whole even number: 1.5 -> 2, 4.5 -> 4, 0.5 -> 0