niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » C
floating point problem
Post new topic   Reply to topic Page 3 of 3 [34 Posts] View previous topic :: View next topic
Goto page:  Previous  1, 2, 3
Author Message
neutron*star
*nix forums Guru


Joined: 21 Feb 2005
Posts: 2039

PostPosted: Thu Jul 20, 2006 11:31 pm    Post subject: Re: floating point problem Reply with quote

Tak-Shing Chan said:

Quote:
On Thu, 20 Jul 2006, Richard Heathfield wrote:

Kaz once talked about solid, topical articles being like pennies in the
bank, and off-topic articles being dollar withdrawals. That's a pretty
good analogy. And of course the trick is to stay in credit. (Warning:
that's just an analogy, and is not to be taken literally - nobody is
doing the accounting, as far as I am aware.)

I do not think that this is a good analogy.

That is your prerogative. Feel free to take it up with Kaz next time he
shows up in here.

Quote:
IMHO the level
of expertise and/or effort required to answer the question should
be taken into account.

Quite so - all solid, topical articles earn pennies[1], but some earn more
pennies than others. In other words, the analogy holds (thus far).

Quote:
I have in mind the mini-essays from Chris
Torek which in the real world should worth 20 times more than the
average on-topic posts (in terms of the post-to-pennies ratio).

At the very least.


[1] What do you mean, you haven't been getting your cheques? Take it up with
your ISP.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Back to top
Ronald Bruck
*nix forums beginner


Joined: 13 Mar 2006
Posts: 11

PostPosted: Thu Jul 20, 2006 11:31 pm    Post subject: Re: floating point problem Reply with quote

In article <ohuvb2ho3aa3aimshus9piuep5p48ljt74@4ax.com>, Mark McIntyre
<markmcintyre@spamcop.net> wrote:

Quote:
On 20 Jul 2006 08:33:57 -0700, in comp.lang.c , "Ancient_Hacker"
grg2@comcast.net> wrote:


Richard Heathfield wrote:

Um, that is totally and utterly irrelevant to my point, which is that with
32 bits you only have 2^32 bit patterns so you can only represent 2^32
different values,

One might suspect most programmers are aware it's impossible to
represent an infinite number of distinct states in a computer.

One might, but one would be disappointed. An alarmingly large number
of computer programmers seem to think that computers are exact.

--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan

Or as Scotty put it on Star Trek, "The more complicated you make the
plumbing, the easier it is to stop it up." (Or something like that.)

Kernighan's is the, er, more polite of the two... And I wanted Mark to
know SOMEBODY, at least, appreciates his digging it out.

Sorry for the off-topicality...

--
Ron Bruck

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Back to top
Dik T. Winter
*nix forums Guru


Joined: 23 Feb 2005
Posts: 327

PostPosted: Thu Jul 20, 2006 11:56 pm    Post subject: Re: floating point problem Reply with quote

In article <1153409637.447697.200250@h48g2000cwc.googlegroups.com> "Ancient_Hacker" <grg2@comcast.net> writes:
Quote:
Richard Heathfield wrote:

Um, that is totally and utterly irrelevant to my point, which is that with
32 bits you only have 2^32 bit patterns so you can only represent 2^32
different values,

One might suspect most programmers are aware it's impossible to
represent an infinite number of distinct states in a computer.

Ah, but Richard is incorrect here. 2^32 bit patterns can represent *at
most* 2^32 different values. There can be different representations that
represent the same value.
--
dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131
home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/
Back to top
neutron*star
*nix forums Guru


Joined: 21 Feb 2005
Posts: 2039

PostPosted: Fri Jul 21, 2006 12:35 am    Post subject: Re: floating point problem Reply with quote

Dik T. Winter said:

Quote:
In article <1153409637.447697.200250@h48g2000cwc.googlegroups.com
"Ancient_Hacker" <grg2@comcast.net> writes:
Richard Heathfield wrote:

Um, that is totally and utterly irrelevant to my point, which is that
with 32 bits you only have 2^32 bit patterns so you can only
represent 2^32 different values,

One might suspect most programmers are aware it's impossible to
represent an infinite number of distinct states in a computer.

Ah, but Richard is incorrect here.

I beg to differ...

Quote:
2^32 bit patterns can represent *at
most* 2^32 different values. There can be different representations that
represent the same value.

....but I'll settle for "insufficiently precise". :-)


--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 3 of 3 [34 Posts] Goto page:  Previous  1, 2, 3
View previous topic :: View next topic
The time now is Thu Dec 04, 2008 2:09 am | All times are GMT
navigation Forum index » Programming » C
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Unknown in header problem -SOLVED- Light Speed Postfix 0 Thu Jul 03, 2008 10:40 am
No new posts problem with sending mail nuxia Postfix 0 Mon Apr 21, 2008 3:58 am
No new posts Postfix 2.3.8 Virtual problem Blotto Postfix 0 Fri Apr 04, 2008 6:11 am
No new posts Postfix sending problem for local domain remote email monkey_magix Postfix 0 Mon Sep 10, 2007 10:17 am
No new posts bounce problem murkis Postfix 0 Sun Oct 08, 2006 3:45 pm

Mobile Phone | Online Advertising | Payday Loan | Car Loan | Mortgage Calculator
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 8.1808s ][ Queries: 20 (8.0876s) ][ GZIP on - Debug on ]