16 bit numbers?

Dar Scott dsc at swcp.com
Sat Jun 26 11:39:59 EDT 2004


On Jun 26, 2004, at 1:20 AM, Jeanne A. E. DeVoto wrote:

> Try setting the useUnicode to true before using numToChar.

This will be in a host dependent order, so watch for that.

When using using numToChar() and charToNum() for binary conversion, you 
can use division and multiplication by a power of 2 for shifting.  You 
can use mod and round as well as the bit ops (bitAnd, bitOr, bitXor, 
bitNot) to mask data.  So there is a way to do all of your binary 
conversions with these.

Though there are some holes in formats, the binaryEncode and 
binaryDecode functions can also handle binary conversions.

Dar Scott



More information about the use-livecode mailing list