| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | How can I convert a Hex number to a binary number? |
Hi,
I am using the following function for decimal numbers but I have a neeed to
convert hex to binary.
Public Function Binary(Number As Long) As String
If Abs(Number) > 1 Then
Binary = Binary(Number \ 2) & CStr(Abs(Number Mod 2))
Else
Binary = CStr(Number)
End If
End Function
thanks
Kirk
--- UseNet To RIME Gateway {at} 2/10/05 2:47:00 PM ---
* Origin: MoonDog BBS, Brooklyn,NY, 718 692-2498, 1:278/230 (1:278/230)SEEN-BY: 633/267 270 5030/786 @PATH: 278/230 10/345 106/1 2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.