beautypg.com

Round integer, Sign, Functions - date/time – Metrohm tiamo 1.1 Manual User Manual

Page 76: Time()

background image

48

General program functions

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

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

Round(-55.5259) = -56

Round('CV.MeanTemp')

= rounded value of the Common variable

Sign

Syntax

y = Sign(Number)

Returns the sign of the entered number:

1

for a positive number,

-1

for a

negative 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

Sign(-55.3) = -1

Sign(26.115) = 1

Sign('CV.MeanTemp')

= sign of the value of the Common variable



Functions - Date/Time

Time()

Syntax

y = Time()

Returns the current date and current time.