Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » General Discussions » General Discussion » OT: Can someone explain this?
OT: Can someone explain this? [message #183221] Thu, 22 December 2005 21:30 Go to next message
Renx is currently offline  Renx
Messages: 2321
Registered: April 2003
Location: Canada
Karma: 0
General (2 Stars)
Category Moderator
http://www.google.com/search?client=opera&rls=en&q=1 .0+-+0.9+-+0.1&sourceid=opera&ie=utf-8&oe=utf-8

I haven't really looked into that much, but it appears to me that this calculation should return 0?


~Canucck

http://www.sloganizer.net/en/style7,Espion.png

Blazer

...RG made me ugly

[Updated on: Thu, 22 December 2005 21:30]

Report message to a moderator

Re: OT: Can someone explain this? [message #183222 is a reply to message #183221] Thu, 22 December 2005 21:35 Go to previous messageGo to next message
Hydra is currently offline  Hydra
Messages: 827
Registered: September 2003
Location: Atlanta, GA
Karma: 0
Colonel
You broke google.

Walter Keith Koester: September 22, 1962 - March 15, 2005
God be with you, Uncle Wally.
http://www.warriorforums.net/forums/images/warriorsforchrist/statusicon/forum_new.gif(<---New(ish) Prayer Group Forums)
http://img.photobucket.com/albums/v632/venompawz/cross.gif(<---Archived Prayer Group Forums)
Re: OT: Can someone explain this? [message #183224 is a reply to message #183221] Thu, 22 December 2005 21:51 Go to previous messageGo to next message
cheesesoda is currently offline  cheesesoda
Messages: 6507
Registered: March 2003
Location: Jackson, Michigan
Karma: 0
General (5 Stars)

That is extremely weird.

I've tried many differet combinations. Such as:
1-.9-.1
1-0.9-0.1
(1.0-0.9)-0.1
(1-0.9)-0.1
etc...

All of them come up -2.77555756 × 10^-17. Now, 1.0-(0.9-0.1) turns out .2, which is correct.


whoa.
Re: OT: Can someone explain this? [message #183225 is a reply to message #183221] Thu, 22 December 2005 21:52 Go to previous messageGo to next message
Renx is currently offline  Renx
Messages: 2321
Registered: April 2003
Location: Canada
Karma: 0
General (2 Stars)
Category Moderator
I've conquered Google. I've beaten the beast. I am indeed supreme.

~Canucck

http://www.sloganizer.net/en/style7,Espion.png

Blazer

...RG made me ugly

[Updated on: Thu, 22 December 2005 21:54]

Report message to a moderator

Re: OT: Can someone explain this? [message #183228 is a reply to message #183221] Thu, 22 December 2005 21:54 Go to previous messageGo to next message
xptek is currently offline  xptek
Messages: 1410
Registered: August 2004
Location: USSA
Karma: 0
General (1 Star)
Canadian.

cause = time
Re: OT: Can someone explain this? [message #183230 is a reply to message #183221] Thu, 22 December 2005 21:58 Go to previous messageGo to next message
cypher909 is currently offline  cypher909
Messages: 34
Registered: November 2005
Location: FL USA
Karma: 0
Recruit
rofl awsome!
Re: OT: Can someone explain this? [message #183234 is a reply to message #183225] Thu, 22 December 2005 22:46 Go to previous messageGo to next message
Jecht is currently offline  Jecht
Messages: 3156
Registered: September 2004
Karma: 0
General (3 Stars)
Renx wrote on Fri, 23 December 2005 17:52

I've conquered Google. I've beaten the beast. I am indeed supreme.


Today Google, tomorrow: The World!


http://img148.imageshack.us/img148/9146/hartyn4.png
Re: OT: Can someone explain this? [message #183238 is a reply to message #183221] Fri, 23 December 2005 00:28 Go to previous messageGo to next message
warranto is currently offline  warranto
Messages: 2584
Registered: February 2003
Location: Alberta, Canada
Karma: 0
General (2 Stars)
Heh, well -0.000000000277555756 is fairly close to 0...

Interestingly enough, -0.000000000277555756 + .1 + .9 = 1

I know there was a mathematical error within the Pentium 2 chip, perhaps google runs off one?
Re: OT: Can someone explain this? [message #183245 is a reply to message #183221] Fri, 23 December 2005 01:10 Go to previous messageGo to next message
Goztow is currently offline  Goztow
Messages: 9737
Registered: March 2005
Location: Belgium
Karma: 13
General (5 Stars)
Goztoe
Actually this is so close to 0 that all will prolly agree it is zero Wink. But nice find...

You can find me in The KOSs2 (TK2) discord while I'm playing. Feel free to come and say hi! TK2 discord
Re: OT: Can someone explain this? [message #183255 is a reply to message #183221] Fri, 23 December 2005 04:08 Go to previous messageGo to next message
sniper12345 is currently offline  sniper12345
Messages: 817
Registered: November 2003
Location: Hong Kong
Karma: 0
Colonel

the distance between two intersecting lines gets smaller as it reaches the intersection. However, the distance can get infinitely smaller before it reaches the intersection (0.01, 0.001, 0.0000001 etc). Doesn't that kind of make it impossible for the lines to intersect?

WOL: megapunk0

http://images.listen-to.com/png.php/4g/sniper12345
Re: OT: Can someone explain this? [message #183274 is a reply to message #183222] Fri, 23 December 2005 07:27 Go to previous messageGo to next message
Lijitsu
Messages: 1575
Registered: April 2005
Location: Georgia, USA
Karma: 0
General (1 Star)

Hydra wrote on Thu, 22 December 2005 23:35

You broke google.

Damn you! Damn you to hell for what you've done! ...Wait, we can still use it? Meh, nevermind.


http://img235.imageshack.us/img235/6192/campfiresigred7rb.png
http://img74.imageshack.us/img74/2544/hmminiinferno9sb.jpg
Aircraftkiller wrote on Wed, 31 May 2006 22:30

I've been Nodbuggered. =( =( =(
Re: OT: Can someone explain this? [message #183278 is a reply to message #183255] Fri, 23 December 2005 07:45 Go to previous messageGo to next message
Renx is currently offline  Renx
Messages: 2321
Registered: April 2003
Location: Canada
Karma: 0
General (2 Stars)
Category Moderator
sniper12345 wrote on Fri, 23 December 2005 07:08

the distance between two intersecting lines gets smaller as it reaches the intersection. However, the distance can get infinitely smaller before it reaches the intersection (0.01, 0.001, 0.0000001 etc). Doesn't that kind of make it impossible for the lines to intersect?


No, you're thinking of asymptotes.


~Canucck

http://www.sloganizer.net/en/style7,Espion.png

Blazer

...RG made me ugly
Re: OT: Can someone explain this? [message #183334 is a reply to message #183221] Fri, 23 December 2005 12:30 Go to previous messageGo to next message
=HT=T-Bird is currently offline  =HT=T-Bird
Messages: 712
Registered: June 2005
Karma: 0
Colonel
Mathematics assumes that numbers have infinite precision. However, that's not possible with computers that use floating-point arithmetic, so you get round-off that gives you really tiny numbers instead of 0. Example of the WRONG way to do things (in C++):

float f1 = 2.0 - 1.0;
float f2 = 1.0;
if (f1 == f2)
std::cout << "this might not happen";
else
std::cout << "oops...floating point round-off";

(I still haven't figured out how to insert tabs in forum posts Sad )
and the RIGHT way:
float f1 = 2.0 - 1.0;
float f2 = 1.0;
if (std::fabs (f1 - f2) < std::numeric_limits <float>::epsilion ())
std::cout << "this works";


I hope this helps


HTT-Bird (IRC)
HTTBird (WOL)
Proud HazTeam Lieutenant.
BlackIntel Coder & Moderator.

If you have trouble running BIATCH on your FDS, have some questions about a BIATCH message or log entry, or think that BIATCH spit out a false positive, PLEASE contact the BlackIntel coding team and avoid wasting the time of others.
Re: OT: Can someone explain this? [message #183339 is a reply to message #183221] Fri, 23 December 2005 12:45 Go to previous messageGo to next message
icedog90 is currently offline  icedog90
Messages: 3483
Registered: April 2003
Karma: 0
General (3 Stars)
Why don't you use "using namespace std;" so that you don't have to put std:: in front of everything from the iostream library?
Re: OT: Can someone explain this? [message #183349 is a reply to message #183339] Fri, 23 December 2005 12:57 Go to previous messageGo to next message
=HT=T-Bird is currently offline  =HT=T-Bird
Messages: 712
Registered: June 2005
Karma: 0
Colonel
icedog90 wrote on Fri, 23 December 2005 13:45

Why don't you use "using namespace std;" so that you don't have to put std:: in front of everything from the iostream library?

It's bad form. Dragging in namespaces wholesale leads to name conflicts m8...p.s. it's the STL, not the iostream library


HTT-Bird (IRC)
HTTBird (WOL)
Proud HazTeam Lieutenant.
BlackIntel Coder & Moderator.

If you have trouble running BIATCH on your FDS, have some questions about a BIATCH message or log entry, or think that BIATCH spit out a false positive, PLEASE contact the BlackIntel coding team and avoid wasting the time of others.
Re: OT: Can someone explain this? [message #183354 is a reply to message #183221] Fri, 23 December 2005 13:12 Go to previous messageGo to next message
Renx is currently offline  Renx
Messages: 2321
Registered: April 2003
Location: Canada
Karma: 0
General (2 Stars)
Category Moderator
It's not bad form. Using cout/cin is what's bad.

~Canucck

http://www.sloganizer.net/en/style7,Espion.png

Blazer

...RG made me ugly
Re: OT: Can someone explain this? [message #183376 is a reply to message #183221] Fri, 23 December 2005 14:09 Go to previous messageGo to next message
icedog90 is currently offline  icedog90
Messages: 3483
Registered: April 2003
Karma: 0
General (3 Stars)
It doesn't even matter when you get into OpenGL or DirectX.
Re: OT: Can someone explain this? [message #183378 is a reply to message #183234] Fri, 23 December 2005 14:25 Go to previous message
Aidoneus is currently offline  Aidoneus
Messages: 38
Registered: December 2005
Location: London, England
Karma: 0
Recruit
gbull wrote on Thu, 22 December 2005 23:46

Renx wrote on Fri, 23 December 2005 17:52

I've conquered Google. I've beaten the beast. I am indeed supreme.


Today Google, tomorrow: The World!



Surely that's the wrong way round? Razz "Today: The World. Tomorrow: Google!"


http://i23.photobucket.com/albums/b361/Aidoneus/Aidoneus_Sig_V1_by_Aidoneus.jpg
Previous Topic: What OS are YOU?
Next Topic: Freud would have a field day with this
Goto Forum:
  


Current Time: Sat Nov 16 11:05:05 MST 2024

Total time taken to generate the page: 0.01129 seconds