Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

#28414 [Opn->Fbk]: [de] decimals in float
ID:               28414
Updated by:       wiesemann@php.net
Reported By:      udo dot steinbach at ewetel dot net
-Status:           Open
+Status:           Feedback
Bug Type:         Documentation problem
-Operating System: Windows
+Operating System: Irrelevant
-PHP Version:      4.3.6
+PHP Version:      Irrelevant
New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[2004-08-06 18:26:41] dave@php.net

Updating the summary so people can easily see it's a German doc
problem.

------------------------------------------------------------------------

[2004-05-18 16:41:24] derick@php.net

It's a bug in the german docs...

------------------------------------------------------------------------

[2004-05-18 16:37:44] nlopess@php.net

Write in english, please!

------------------------------------------------------------------------

[2004-05-16 12:57:11] 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?


------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=28414&edit=1

Report this thread to moderator Post Follow-up to this message
Old Post
wiesemann@php.net
10-29-04 08:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Documentation archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:17 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.