🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Regional Settings and sprintf?

#1965
From: Bob Gonder
Date: Wed, 16 May 2007 18:34
8 lines
1267 bytes
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: <ehjm43dubjboqen9iumq4ftjnisjf55aev@4ax.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-mail
References: <464b3dc6$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,3b64aa92b9a80666
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Regional Settings and sprintf?
Date: Wed, 16 May 2007 11:34:02 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <ehjm43dubjboqen9iumq4ftjnisjf55aev@4ax.com>
References: <464b3dc6$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.77.147.10
X-Trace: newsgroups.borland.com 1179340440 67.77.147.10 (16 May 2007 11:34:00 -0700)
Lines: 10
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