🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #297814

float -> int - zaokrąglenie w górę i dół

#297814
From: Pawel
Date: Sun, 31 Jul 2011 18:20
7 lines
1069 bytes
Witam wszystkich

Czy jest w C++/Qt jakas funkcja ktora by umozliwiala zaokraglanie liczby 
w górę lub w dół w zaleznosci od czesci ulamkowej.
Np.
2.49 = 2
2.51 = 3
Technical Details
Message-ID: <j146e6$gmt$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: Pawel <ppf9@USUN_TOpoczta.fm>
Newsgroups: pl.comp.lang.c
Subject: float -> int - zaokrąglenie w
 górę i dół
Date: Sun, 31 Jul 2011 20:20:22 +0200
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 7
Message-ID: <j146e6$gmt$1@inews.gazeta.pl>
NNTP-Posting-Host: router.krt.net.pl
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1312136454 17117 91.217.19.254 (31 Jul 2011 18:20:54 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Sun, 31 Jul 2011 18:20:54 +0000 (UTC)
X-User: newsgroup.1
X-Antivirus: avast! (VPS 110731-0, 2011-07-31), Outbound message
X-Antivirus-Status: Clean
User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:5.0) Gecko/20110624 Thunderbird/5.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit