🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #1222

Re: formatowanie liczby

#1222
From: bzdurqa
Date: Mon, 27 Aug 2001 10:14
9 lines
1314 bytes
Daniel <wszelaki@kki.net.pl> napisał:
> Pomimo analizy manuala nie udało mi się rozwiązać następującego problemu.
> Próbowałem to zrobić za pomocą sprintf'a.
> Jak wyswietlić liczbe np. 1234567.89  w formacie  xxx.xxx.xxx,xx
> czyli np. 1.234.567,89
to kwestia ustawienia locales - bodajże thousands_sep (zobacz setlocale()
i LC_MONETARY w manualu). ewentualnie możesz przetwarzać stringa, np
chunk_split() + join()
= bzd =
Technical Details
Message-ID: <9md6ep$kht$1@news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.icm.edu.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
References: <9md4rb$a2e$1@news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.icm.edu.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
From: "bzdurqa" <bzdurqa@wp.pl>
Newsgroups: pl.comp.lang.php
Subject: Re: formatowanie liczby
Date: Mon, 27 Aug 2001 12:14:18 +0200
Organization: tp.internet - http://www.tpi.pl
Lines: 11
Message-ID: <9md6ep$kht$1@news.tpi.pl>
References: <9md4rb$a2e$1@news.tpi.pl>
NNTP-Posting-Host: 217.96.121.117
Mime-Version: 1.0
X-Trace: news.tpi.pl 998907161 21053 217.96.121.117 (27 Aug 2001 10:12:41 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: 27 Aug 2001 10:12:41 GMT
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MSMail-Priority: Normal
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit