Path: csiph.com!aioe.org!.POSTED.hz5Li9JkiJv11OHzJkoZfQ.user.gioia.aioe.org!not-for-mail From: AK Newsgroups: pl.comp.programming Subject: =?UTF-8?Q?Re=3a_Por=c3=b3wnywanie_liczb=2c_double_float?= Date: Tue, 16 Jul 2019 00:05:35 +0200 Organization: Aioe.org NNTP Server Lines: 13 Message-ID: References: <5d00f035$0$15194$426a74cc@news.free.fr> <5d011217$0$17348$65785112@news.neostrada.pl> <5b09d1e0-1ed9-4a3c-851e-29cbf826cb3a@googlegroups.com> <2656a77d-a2c2-4883-8987-b57162c8c5d2@googlegroups.com> NNTP-Posting-Host: hz5Li9JkiJv11OHzJkoZfQ.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 Content-Language: en-GB X-Notice: Filtered by postfilter v. 0.9.2 Xref: csiph.com pl.comp.programming:32721 On 2019-07-14 10:16, DMR wrote: >> modf > > > Funkcje biblioteczne dobre na wszystko! :-) > Tylko, one też muszą być jakoś zaimplementowane. np. Python: w_groszach = int(abs(amount) * 100.0 + 0.5) zlote = w_groszach // 100 grosze = w_groszach % 100 AK