Thread View: pl.comp.lang.php
3 messages
3 total messages
Started by Daniel
Mon, 27 Aug 2001 09:42
formatowanie liczby
Author: Daniel
Date: Mon, 27 Aug 2001 09:42
Date: Mon, 27 Aug 2001 09:42
11 lines
1120 bytes
1120 bytes
Witam, 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 Daniel
Re: formatowanie liczby
Author: bzdurqa
Date: Mon, 27 Aug 2001 10:14
Date: Mon, 27 Aug 2001 10:14
9 lines
1314 bytes
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 =
Re: formatowanie liczby
Author: Grzegorz (Greg)
Date: Mon, 27 Aug 2001 10:33
Date: Mon, 27 Aug 2001 10:33
15 lines
1208 bytes
1208 bytes
> 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 A moze number_format ($liczba, 2, ",", "."); -- pozdrawiam Grzegorz Barcicki ----------------------------------------------------- HomeNet - http://home.pl - info@home.pl - 0801 325555
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads