Difference between revisions of "BIN2I()"

From Recital Documentation Wiki
Jump to: navigation, search
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
==Class==
 
Expressions and Type Conversion
 
 
 
 
==Purpose==
 
==Purpose==
 
Function to convert a binary encoded string to a numeric
 
Function to convert a binary encoded string to a numeric
Line 27: Line 23:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Expressions and Type Conversion]]
 
[[Category:Expressions and Type Conversion]]
 
[[Category:Expressions and Type Conversion Functions]]
 
[[Category:Expressions and Type Conversion Functions]]

Latest revision as of 16:09, 26 November 2009

Purpose

Function to convert a binary encoded string to a numeric


Syntax

BIN2I(<expC>)


See Also

CREATE BRIDGE, BIN2L(), BIN2W(), BINCLOSE(), BINCREATE(), BINOPEN(), BINREAD(), BINSEEK(), BINWRITE(), I2BIN(), L2BIN()


Description

The BIN2I() function converts a binary encoded string, formatted as a 16-bit signed integer, into an integer. The <expC> is a string, two bytes in length, containing a binary numeric value. All binary conversion functions may be used in conjunction with the binary file functions.


Example

? bin2i(i2bin(987))
       987


Products

Recital Server, Recital