16 bit numbers?

kee nethery kee at kagi.com
Sat Jun 26 02:47:24 EDT 2004


On Jun 25, 2004, at 9:14 PM, John Rule wrote:

> I've played around with converting a 16 bit integer to binary (and 
> back)
> using the combination of numToChar()

numtochar is used to create an ascii char by specifying it's decimal 
equivalent. It does not do what you want.

> and binaryEncode(), and I have come to
> the conclusion that I cannot 'directly' do this with 
> numToChar()...which is
> limited to 8 bits (binaryEncode seems to NOT have this limitation). Has
> anyone else found a solution to this?

There might be a function that does what you want and if not, it is 
pretty easy to build..

Kee Nethery




More information about the use-livecode mailing list