Base 10 to base 32

  • Thread starter Thread starter Red via AccessMonster.com
  • Start date Start date
R

Red via AccessMonster.com

Hi everyone,
I was wondering if anyone knew of a code that could change a base 10 entry to
a base 32 entry? I'm not sure if its possible but curious.

VR,

Red
 
Function base32(n As Long) As String
If n = 0 Then base32 = "0" Else base32 = base32(n \ 32) _
& IIf((n Mod 32) < 10, n Mod 32, Chr((n Mod 32) + 65 - 10))
End Function
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top