16 bit numbers?
John Rule
johnrule at rcsprogramming.com
Sat Jun 26 19:46:21 EDT 2004
Thanks for the tip Dar...this definitely needed to be reversed for my Mac!
JR
> Date: Sat, 26 Jun 2004 09:39:59 -0600
> From: Dar Scott <dsc at swcp.com>
> Subject: Re: 16 bit numbers?
> To: How to use Revolution <use-revolution at lists.runrev.com>
> Message-ID: <1556F17F-C787-11D8-8083-000A9567A3E6 at swcp.com>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
>
> 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