🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #8990

Re: Numeros decimales.

#8990
From: Pablo Saratxaga
Date: Mon, 23 Sep 2002 21:46
19 lines
1789 bytes
Kaixo!
Li Sun, 22 Sep 2002 15:34:37 +0200,
 Jose A <MAQUI000@NOSPAM.mundo-r.com> scrijheut:

> En C cuando realizas una division usando float los numeros decimales van 
> despues del un punto "." �sabeis como podria pasar este punto a coma?

 JA> setlocale (LC_NUMERIC, "es_ES");

mejor usar setlocale(LC_NUMERIC,""); 
y dejar que el usuario decida (seg�n su definici�n de LC_NUMERIC) como
desea formatear las decimales.

-- 
Pablo Saratxaga           PGP Key available, key ID: 0xD9B85466

"Linux is like Tom Bombadil -- the only character in the Lord of the Rings
trilogy immune to the seduction and effects of the evil ring."
http://www.infoworld.com/cgi-bin/displayNew.pl?/petrel/980727np.htm
Technical Details
Message-ID: <amo23o$icl@chanae.alphanet.ch>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!demon!aotearoa.belnet.be!news.belnet.be!news.stben.be!news.chanae.alphanet.ch!not-for-mail
References: <3D8C55A5.7080909@lycos.es> <slrnaorhnc.1j8.MAQUI000@213.60.228.203>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,f0bff1a3c86dd7db
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-09-23 16:06:56 PST
From: Pablo Saratxaga <srtxg@chanae.alphanet.ch>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Numeros decimales.
Date: 23 Sep 2002 21:46:32 -0000
Organization: finally got one
Lines: 19
Message-ID: <amo23o$icl@chanae.alphanet.ch>
References: <3D8C55A5.7080909@lycos.es> <slrnaorhnc.1j8.MAQUI000@213.60.228.203>
X-Comment-To: Jose A <MAQUI000@NOSPAM.mundo-r.com>
X-Accept-Language: wa, es, fr, ja
X-PGP-Key: http://chanae.stben.be/pablo/gpg-key.asc
X-Newsreader: TIN [UNIX 1.3 unoff BETA 970527; i586 Linux 2.2.17-0.11mdk]
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!demon!aotearoa.belnet.be!news.belnet.be!news.stben.be!news.chanae.alphanet.ch!not-for-mail