Leading Zeros in Binary

Camm29 Camm29 at tesco.net
Thu Nov 17 16:29:47 EST 2005


Great Thanks
format works great
Cheers
----- Original Message -----
From: "MisterX" <b.xavier at internet.lu>
To: "'How to use Revolution'" <use-revolution at lists.runrev.com>
Sent: Thursday, November 17, 2005 9:03 PM
Subject: RE: Leading Zeros in Binary


> that would be in the "format" or numberformat section...
>
> sorry never tried... could work ;)
>
> set the numberformat to "########" ...
>
> or
>
> get format("%#####b", mynumber)
> which seems to have more options...
>
> cheers
> Xavier
>
> > -----Original Message-----
> > From: use-revolution-bounces at lists.runrev.com
> > [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Camm29
> > Sent: Thursday, November 17, 2005 21:48
> > To: use-revolution at lists.runrev.com
> > Subject: Leading Zeros in Binary
> >
> > Help !!!! Please
> >
> > When using baseConvert ("00FFFFFF" , 16 , 2)
> >
> > it returns 111111111111111111111111
> >
> > This is correct but i wish to keep the leading zeros for bit
> > manipulation
> >
> > so i need the result to be ,
> > 00000000111111111111111111111111
> >
> > Kind Regards
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage
> > your subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list