Hex to Decimal 2s Complement

Camm camm29 at tesco.net
Fri Apr 27 05:06:08 EDT 2018


Richmond ,

Tried baseconvert but could not get the correct result for 2s Complement.

Regards
Camm

----- Original Message -----
From: "Richmond via use-livecode" <use-livecode at lists.runrev.com>
To: "Camm via use-livecode" <use-livecode at lists.runrev.com>
Cc: "Richmond" <richmondmathewson at gmail.com>
Sent: Friday, 27 April, 2018 10:01:17 AM
Subject: Re: Hex to Decimal 2s Complement

Check out *baseConvert* in the dictionary.

Richmond.


On 27.04.2018 11:50, Camm via use-livecode wrote:
> Hi ,
>
>
> Help needed on the most efficient way to convert signed Hex to Decimal (2s Complement) range 0000 - FFFF
>
>
>
>
> Example :-
>
>
> FFCC = -52
>
>
> 014A = 330
>
>
> Kind Regards
> Camm
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the Use-livecode mailing list