CTOBIN( ) Function

Converts a binary character representation to a numeric value.

CTOBIN(cExpression [, cFlags])

Parameters

cExpression

Specifies the binary character representation to convert.

cFlags

If the binary character representation specified with cExpression was generated using an 8 byte data type (currency or double, for example), include cFlags to control the type of value returned by CTOBIN( ).

cFlags Description

1

cExpression is an expression that is 1 byte long.

2

cExpression is an expression that is 2 bytes long.

4

cExpression is an expression that is 4 bytes long.

8

cExpression is an expression that is 8 bytes long.

B

cExpression is a double data type, and must be 8 bytes long.

CTOBIN( ) returns a double data type value. This is the default for an expression that is 8 bytes long.

N

cExpression is a numeric data type, and must be 4 or 8 bytes long.

CTOBIN( ) returns a numeric type value.

Y

cExpression is a currency data type, and must be 8 bytes long.

CTOBIN( ) returns a currency type value.

R

Reverses the binary expression.

S

Prevents the sign bit of number from being toggled (BITXOR).

Expand imageReturn Value

Expand imageRemarks

Expand imageSee Also


© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic