[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Convert a number to its binary representation (not string) as 1D Vector
From: |
Muthiah Annamalai |
Subject: |
Convert a number to its binary representation (not string) as 1D Vector |
Date: |
Mon, 02 Oct 2006 05:38:35 -0500 |
Hello there,
I have a nice function Im writing, for which a hard part for me
is to convert a number to its binary representation as 1D Vector
of 1's & 0's. Now Im doing this using a while loop and appending
to the vector, which seems to throw speed into the trashcan;
any and all suggestions welcome.
Thanks in advance,
-Muthu
--
Muthiah Annamalai,
Graduate Student,
Department of Electrical Engineering,
University of Texas, Arlington.
- Convert a number to its binary representation (not string) as 1D Vector,
Muthiah Annamalai <=