Article View: borland.public.cppbuilder.nativeapi
Article #1967Re: Regional Settings and sprintf?
From: Robert G. Hoover
Date: Thu, 17 May 2007 21:08
Date: Thu, 17 May 2007 21:08
28 lines
1994 bytes
1994 bytes
Hi Bob,
Excellent! That did the trick. It's amazing how you look through the list of
available functions and miss something that obvious!
I see in the documentation a concern about being threadsafe? That kinda scares
me at this point. I've been fighting with the new dual core architecture for
months now with my programs only to find that I need to patch Windows XP SP2
because Micro$oft's stuff isn't designed to run the dual core machines and even
some of the faster single core machines! LOL
Thanks,
Rob
Bob Gonder wrote:
> Robert G. Hoover wrote:
>
>> However, I'm using String("").sprintf("%.03f", MyFloat) to convert back to a
>> I end up with something like "5.200000384". I am using sprintf so I
>> can limit the number of significant digits displayed. Is there a way to limit my
>> sigdigs and utilize the global Regional Settings of Windows?
>
> How about FloatToStrF() ?
>
>
Technical Details
Message-ID:
<464cc446$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<464b3dc6$1@newsgroups.borland.com> <ehjm43dubjboqen9iumq4ftjnisjf55aev@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,3b64aa92b9a80666 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Thu, 17 May 2007 17:08:24 -0400 From: "Robert G. Hoover" <not.a.real.address@anywhere.sorry> User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Regional Settings and sprintf? References: <464b3dc6$1@newsgroups.borland.com> <ehjm43dubjboqen9iumq4ftjnisjf55aev@4ax.com> In-Reply-To: <ehjm43dubjboqen9iumq4ftjnisjf55aev@4ax.com> X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 000741-0, 05/17/2007), Outbound message X-Antivirus-Status: Not-Tested NNTP-Posting-Host: 76.106.54.160 Message-ID: <464cc446$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1179436102 76.106.54.160 (17 May 2007 14:08:22 -0700) Lines: 28 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail