Thread: How to get binary value for an Integer

How to get binary value for an Integer

From
"kumar"
Date:
Dear Friends,
 
 I am using postgres 7.3.2. I wanna get the binary value of number 65536. Is there anyway to get that postgres functions.
 
Thanks
kumar
 

Re: How to get binary value for an Integer

From
Achilleus Mantzios
Date:
O kyrios kumar egrapse stis Apr 27, 2004 :

> Dear Friends,
> 
>  I am using postgres 7.3.2. I wanna get the binary value of number 65536. Is there anyway to get that postgres
functions.

SELECT 65536::bit(32);

(assuming you have in mind a 32 bit arch).

> 
> Thanks
> kumar
> 

-- 
-Achilleus