🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Odejmowanie

#1461
From: kRuK
Date: Tue, 28 Aug 2001 14:05
34 lines
1646 bytes
Na oko kwestia settype() z manuala

Użytkownik Robert Chojnacki <rchojnacki@hartwig.szczecin.pl> w wiadomości do
grup dyskusyjnych napisał:9mg5co$po8$1@news.tpi.pl...
> Mam sobie taki fragment kodu:
>
> for($k=0; $k < $i; $k++) {
>     ...
>     ...
>     ...
>   $roznica = $wartosci[$k] - $zaplaty[$k];
>     ...
>     ...
>     ...
>  }
>
> i przy założeniu, że:
>
> $wartosci[$k] == $zaplaty[$k];
>
> powinienem dostawać 0 (logiczne), ale ta nie jest.
> Dostaję 0 albo np. z działania:
>
> 214.91 - 214.91
>
> wyskakuje  2.8421709430404E-014
>
> Gdzie jest błąd?
>
> Pozdrawiam
>
> robert(o)
>
>
Technical Details
Message-ID: <9mg88m$3sg$1@h1.uw.edu.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!uw.edu.pl!not-for-mail
References: <9mg5co$po8$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!uw.edu.pl!not-for-mail
From: "kRuK" <kruk75@interia.pl>
Newsgroups: pl.comp.lang.php
Subject: Re: Odejmowanie
Date: Tue, 28 Aug 2001 16:05:34 +0200
Organization: A poorly-installed InterNetNews reader
Lines: 36
Message-ID: <9mg88m$3sg$1@h1.uw.edu.pl>
References: <9mg5co$po8$1@news.tpi.pl>
NNTP-Posting-Host: stocznia.sssa.com.pl
X-Trace: h1.uw.edu.pl 999007318 3984 212.160.133.226 (28 Aug 2001 14:01:58 GMT)
X-Complaints-To: usenet@h1.uw.edu.pl
NNTP-Posting-Date: 28 Aug 2001 14:01:58 GMT
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MSMail-Priority: Normal
X-Notice1: This post has been postprocessed on the news.uw.edu.pl server.
X-Notice2: Subject line has been filtered and any Odp: strings removed.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit