php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #28414 [de] decimals in float
Submitted: 2004-05-16 12:57 UTC Modified: 2007-03-09 22:21 UTC
From: udo dot steinbach at ewetel dot net Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2004-05-16 12:57 UTC] udo dot steinbach at ewetel dot net
Description:
------------
My english is to bad, so in german.

In /de/language.types.float.html hei?t es
> Das gr?ndet sich auf die Tatsache, dass es unm?glich ist, manche Dezimal-Zahlen durch eine endliche Anzahl an Nachkomma-Stellen darzustellen

Das ist zwar richtig, aber die falsche Erkl?rung f?r den Satz davor
> So wird floor((0.1 + 0.7) * 10) normalerweise 7

Siehe news:m3wvqvu656.fsf@penguin.slac.stanford.edu und news:3848a517.19666898@news.btx.dtag.de
> Die Basis 10 ist inkommensurabelk mit der Basis 2. Auf binaer arbeitenden Gleitkommahardwares wird daher (change - dollar_amount) = 1/10 auf der Hardware nicht exakt darstellbar sein, sondern so etwas wie 0.0999? sein.  Damit ist int(100*...)=9.

Reproduce code:
---------------
?? for docs?

Expected result:
----------------
?? for docs?

Actual result:
--------------
?? for docs?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-18 16:37 UTC] nlopess@php.net
Write in english, please!
 [2004-05-18 16:41 UTC] derick@php.net
It's a bug in the german docs...
 [2004-08-06 18:26 UTC] dave@php.net
Updating the summary so people can easily see it's a German doc problem.
 [2004-10-29 16:47 UTC] wiesemann@php.net
The german text on this page is the exact translation of the english text.

floor((0.1 + 0.7) * 10) returns 7 as stated in the text.

So the original bug reporter should tell us where and what exactly the problem is.
 [2004-11-06 01:00 UTC] phpdoc at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2007-03-09 22:21 UTC] philip@php.net
The German team considers this bogus.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 15:01:28 2024 UTC