beautypg.com

B&B Electronics VFG3000 - Manual User Manual

Page 364

background image

T

EXT

T

O

F

LOAT

(

STRING

)

V

LINX

F

IELDBUS

G

ATEWAY

M

ANAGER

U

SER

M

ANUAL

P

AGE

348

T

EXT

T

O

F

LOAT

(

STRING

)

A

RGUMENT

T

YPE

D

ESCRIPTION

string

cstring

The string to be processed.

D

ESCRIPTION

Returns the value of

string

, treating it as a floating-point number. This function is often

used together with

Mid

to extract values from strings received from raw serial ports. It can

also be used to convert other string values into floating-point numbers.

F

UNCTION

T

YPE

This function is passive.

R

ETURN

T

YPE

float.

E

XAMPLE

Data := TextToFloat("3.142")