473,396 Members | 1,918 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

(OT) floating-point numbers

What have some of you guys read to have a solid understanding of how
floating-point numbers are represented or handled by the processor and
what the difference between single and double precision is?

I found this: http://docs.sun.com/source/806-3568/ncg_goldberg.html

Not sure if this is what I should be reading? Maybe a more authoritive
document exists?
Nov 13 '05 #1
3 2111

"Mantorok Redgormor" <ne*****@tokyo.com> wrote in message
news:41**************************@posting.google.c om...
What have some of you guys read to have a solid understanding of how
floating-point numbers are represented or handled by the processor and
what the difference between single and double precision is?

I found this: http://docs.sun.com/source/806-3568/ncg_goldberg.html

Not sure if this is what I should be reading? Maybe a more authoritive
document exists?


Kahan's "What every computer scientist should know about floating point" is
probably a good start.

-- glen
Nov 13 '05 #2
In article <sKT9b.484801$uu5.83261@sccrnsc04>, ga*@ugcs.caltech.edu
says...

"Mantorok Redgormor" <ne*****@tokyo.com> wrote in message
news:41**************************@posting.google.c om...
What have some of you guys read to have a solid understanding of how
floating-point numbers are represented or handled by the processor and
what the difference between single and double precision is?

I found this: http://docs.sun.com/source/806-3568/ncg_goldberg.html

Not sure if this is what I should be reading? Maybe a more authoritive
document exists?


Kahan's "What every computer scientist should know about floating point" is
probably a good start.


Actually, the above link is to that article (actually a reprint of it),
but it was written by David Goldberg, not Kahan.

Perhaps you were thinking of his "How JAVA's Floating-Point Hurts Everyone
Everywhere" instead?

--
Randy Howard _o
2reply remove FOOBAR \<,
______________________()/ ()______________________________________________
SCO Spam-magnet: po********@sco.com
Nov 13 '05 #3

"Randy Howard" <ra**********@FOOmegapathdslBAR.net> wrote in message
news:MP************************@news.megapathdsl.n et...
In article <sKT9b.484801$uu5.83261@sccrnsc04>, ga*@ugcs.caltech.edu
says...

"Mantorok Redgormor" <ne*****@tokyo.com> wrote in message
news:41**************************@posting.google.c om...
What have some of you guys read to have a solid understanding of how
floating-point numbers are represented or handled by the processor and
what the difference between single and double precision is?

I found this: http://docs.sun.com/source/806-3568/ncg_goldberg.html

Not sure if this is what I should be reading? Maybe a more authoritive
document exists?


Kahan's "What every computer scientist should know about floating point" is probably a good start.


Actually, the above link is to that article (actually a reprint of it),
but it was written by David Goldberg, not Kahan.

Perhaps you were thinking of his "How JAVA's Floating-Point Hurts Everyone
Everywhere" instead?


Well, first, please forgive me for the mistake in authorship.

It seems that there is some connection between that paper and Kahan, but
yes, he didn't write it.

So then I had to go and read "How JAVA's Floating-Point Hurts Everyone
Everywhere" to find out. (Also, note that this paper includes much more
than Java's floating point in its examples.)

I believe it is a different paper than I was remembering, but it includes
results from many of Kahan's papers.

Among those are the effects of doing floating point arithmetic in higher
precision than specified.

To get back to discussing C, the paper comments that the original K&R C
would promote float variables to double before all calculations, where ANSI
C allows calculations on float variables to be done in float precision. He
considers that a mistake.

So, I would say that both are good reading materials for users of floating
point arithmetic.

-- glen

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: George Hester | last post by:
At the time this suggestion was made I didn't have the wherewithall to even attempt it. But over time I learned enough to make a stab at it. Let just say the foating DIV had to provide the same...
761
by: Neo-LISPer | last post by:
Hey Recently, I researched using C++ for game programming and here is what I found: C++ game developers spend a lot of their time debugging corrupted memory. Few, if any, compilers offer...
3
by: Kaabi | last post by:
If you are fluent in C++, then this is for you. Pilot Doofy of mustywindows.com is creating a new computer language called MELE (Most Efficient Language Ever). It is a web/desktop language used in...
89
by: Sweety | last post by:
hi, Is main function address is 657. its show in all compiler. try it & say why? bye,
32
by: Jon Paal | last post by:
trying to use this script for scrolling tables found at this link: http://www.litotes.demon.co.uk/example_scripts/tableScroll.html The top left corner in the table grid is hidden from being...
2
by: Qiang | last post by:
Those who have used Google notebook may notice that google notebook displays the notes in a small floating window of the browser. I have tried to create a similar floating window, but with no luck....
111
by: Tonio Cartonio | last post by:
I have to read characters from stdin and save them in a string. The problem is that I don't know how much characters will be read. Francesco -- ------------------------------------- ...
0
by: gdrenfrew | last post by:
I'd like to know if it is possible to stop the parent application of a floating form becoming active when the controls on the floating form are clicked? I've got a large application, with multiple...
6
by: Jeremy | last post by:
I've got a floating div which becomes visible when a link is clicked. I want the div to be hidden when the user clicks anywhere on the page except for whithin the div. What is the best way to do...
5
by: Computer Guy | last post by:
I know this is not actually a PHP question, but I figured this would be the place to go to get a good answer. I have a website for the neighborhood I live in and people's main concern is security....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.