CVL

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > BuiltIn Functions > Numeric functions > CVx >

CVL

 

Description

 

Convert string bytes into corresponding numeric data.

 

Syntax

 

n = CVL(String_Expression [, OffSet])

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

String_Expression

String

No

Any string expression

OffSet

Number

Yes

Indicate at what position inside String_Expression to start conversion

 

Remarks

 

The CVx functions return a number corresponding to a binary pattern stored in a string value.

 

Function   Bytes from string   Numeric expression

CVBYT      1-byte string       Byte

CVCUR      8-byte string       Currency

CVCUX      8-byte string       Extended-currency

CVD        8-byte string       Double-precision

CVDWD      4-byte string       Double-word

CVE       10-byte string       Extended-precision

CVNumber  10-byte string       Extended-precision

CVI        2-byte string       Integer

CVL        4-byte string       Long-integer

CVQ        8-byte string       Quad-integer

CVS        4-byte string       Single-precision

CVWRD      2-byte string       Word

 

Restrictions

 

See also

 

CVBYT, CVCUR, CVCUX, CVD, CVDWD, CVE, CVI, CVL, CVQ, CVS, CVWRD

 

Examples