🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.bazy-danych.msaccess
Article #37891

Re: Jeszcze raz zaokrąglenie.

#37891
From: (c) Krzysztof Pozorek
Date: Tue, 02 Apr 2002 10:41
16 lines
1494 bytes
(...)
> W takim razie pozostaje jedynie:
> Int(Liczba*100+0.50000000000000793806)/100
(...)

Kombinujesz...

Zreszta Liczba = 0,025 zwraca 0,03
a Liczba = 1,025 zwraca 1,02
Czyli tez zle.

Jest sprawdzona metoda, ktora podaje na stronie:
http://www.access.vis.pl/af02_fms.htm (punkt 21)
i polega ona na zamianie liczby zmiennoprzecinkowej na staloprzecinkowa za
pomoca funkcji CDec lub wykorzystaniu funkcji Format.
K.P.
Technical Details
Message-ID: <a8c1to$9oh$1@pippin.warman.nask.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.man.poznan.pl!fargo.cgs.poznan.pl!news.internetia.pl!news.nask.pl!not-for-mail
References: <a83sqc$md6$1@news.tpi.pl> <a8bkid$anq$1@news.onet.pl> <a8bvc3$8mu$1@pippin.warman.nask.pl> <a8c0na$4fr$1@news.onet.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.man.poznan.pl!fargo.cgs.poznan.pl!news.internetia.pl!news.nask.pl!not-for-mail
From: "\(c\) Krzysztof Pozorek" <k.pozorek@gazeta.pl>
Newsgroups: pl.comp.bazy-danych.msaccess
Subject: Re: Jeszcze raz zaokrąglenie.
Date: Tue, 2 Apr 2002 12:41:59 +0200
Organization: NASK - www.nask.pl
Lines: 19
Message-ID: <a8c1to$9oh$1@pippin.warman.nask.pl>
References: <a83sqc$md6$1@news.tpi.pl> <a8bkid$anq$1@news.onet.pl> <a8bvc3$8mu$1@pippin.warman.nask.pl> <a8c0na$4fr$1@news.onet.pl>
NNTP-Posting-Host: dev174.gazeta.pl
X-Trace: pippin.warman.nask.pl 1017744120 10001 193.42.229.174 (2 Apr 2002 10:42:00 GMT)
X-Complaints-To: usenet@nask.pl
NNTP-Posting-Date: Tue, 2 Apr 2002 10:42:00 +0000 (UTC)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MSMail-Priority: Normal
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit