🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #707

Re: Base10->Base32->Base10 Help Please

#707
From: Jonathan Benedicto
Date: Wed, 27 Feb 2008 15:35
17 lines
1351 bytes
jB wrote:
> Could anyone please help me with a couple of small routines to convert a
> base10 number into a base32 string and a routine to convert base32 string
> into a base10 number.
>
> A class would be great.

If you're using the VCL:

String Str = IntToHex( 123456, 2 ); // 2nd parameter is pad to how many 
characters.

int i = StrToInt( "0x10" );

HTH

Jon
Technical Details
Message-ID: <47c58914$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <47c53b22@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d1e84eddc30a90a
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Jonathan Benedicto" <invalid@nobody.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <47c53b22@newsgroups.borland.com>
Subject: Re: Base10->Base32->Base10 Help Please
Date: Wed, 27 Feb 2008 10:35:40 -0500
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 99.238.204.170
Message-ID: <47c58914$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1204128020 99.238.204.170 (27 Feb 2008 08:00:20 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail