🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internationalization
Article #700

Re: Decimal point

#700
From: Per Laursen
Date: Sat, 04 Jan 2003 19:55
26 lines
1601 bytes
Have you tried to take a look at the help for
    setlocale()
    localeconv()

Alternatively, you might consider to sprintf() into a buffer, replace all
'.' with ',', and fputs() the buffer to a file (no, not very slick, but
doable)

regards
Per

"Ned Hoyek" <nhoyek@indsci.com> skrev i en meddelelse
news:3dff8e05$1@newsgroups.borland.com...
> Hello,
>
> How can I set the decimal point to be a  ,  instead of  .  in the
fprintf().
>
> For example, I want this statement to output 1,30 instead of 1.30
>
> fprintf(filename,"\r\n %.2f ",1.3);
>
> Any idea would be appreciated.
> Thank you
>
>
Technical Details
Message-ID: <3e173c5e@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!news.boerde.de!nntp.cs.uni-magdeburg.de!PeerFeed.KWeb.on.ca!newsgroups.borland.com!not-for-mail
References: <3dff8e05$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10297d,7d98e1b4a10ee7b4
X-Google-Attributes: gid10297d,public
X-Google-ArrivalTime: 2003-01-04 12:04:09 PST
From: "Per Laursen" <per@danica-biomedical.dk>
Newsgroups: borland.public.cppbuilder.internationalization
References: <3dff8e05$1@newsgroups.borland.com>
Subject: Re: Decimal point
Date: Sat, 4 Jan 2003 20:55:40 +0100
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 195.41.69.223
Message-ID: <3e173c5e@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1041710174 195.41.69.223 (4 Jan 2003 11:56:14 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!news.boerde.de!nntp.cs.uni-magdeburg.de!PeerFeed.KWeb.on.ca!newsgroups.borland.com!not-for-mail