Function EN Version 1.90

@FloatToNumber

Float List Misc NUMBER

Syntax

@FloatToNumber(FN1);
@FloatToNumber(FNLIST1);

Description

Converts FN FN1 or FNLIST FNLIST1 into a NUMBER or NUMBERLIST; any existing decimal places are truncated.

HINWEIS:NOTE:
All numeric constants in the APIEngine are of type FLOAT/FLOATLIST.

ACHTUNG:IMPORTANT:
The range of type NUMBER/NUMBERLIST is between 0 and 65535.
All values that are negative or greater than 65535 are set to 0 during conversion.

Example: @FloatToNumber(FN1)

FN1:=100.4;
@FloatToNumber(FN1); returns 100

FN1:=150.5;
@FloatToNumber(FN1); returns 150

FN1:=-200.3;
@FloatToNumber(FN1); returns 0

Example: @FloatToNumber(FNLIST1)

FNLIST1:=1.4:2:-1:100000:5.001:5.500:5.999;
@FloatToNumber(FNLIST1);

returns 1:2:0:0:5:5:5

Note : This text was machine-translated and may contain inaccuracies.