Leading Zeros in Binary
MisterX
b.xavier at internet.lu
Thu Nov 17 16:03:21 EST 2005
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
More information about the use-livecode
mailing list