Prev: Possible easy diagnostic outputting from multiple threads tothe one text frame
Next: JDK 1.6.0_21 released
From: Lew on 7 Jul 2010 21:32 Lew wrote: >> It is one of the most fundamental and introductory aspects of computer >> programming that floating-point "numbers" in a computer are limited- >> precision approximations of real numbers. Arne Vajhøj wrote: > There are actually programmers that are never exposed to floating > point. Then a) they aren't programmers and b) they are derelict if they wish to be. -- Lew
From: Boris Punk on 7 Jul 2010 21:57 "Arne Vajh�j" <arne(a)vajhoej.dk> wrote in message news:4c350cb7$0$282$14726298(a)news.sunsite.dk... > On 07-07-2010 14:13, Lew wrote: >> The reason that computer programmers command such good wages is that >> it is a *skilled* profession. Most people cannot do it, and of those >> who can it requires intelligence, study and practice, i.e., it >> requires tremendous intellectual effort and capacity. > > Why can I hear violins in the background? > > :-) > >> It is one of the most fundamental and introductory aspects of computer >> programming that floating-point "numbers" in a computer are limited- >> precision approximations of real numbers. > > There are actually programmers that are never exposed to floating > point. > > Arne > > I did plenty of manual sums of floating point numbers at college on paper - just wanted a refresher from some knowlegeable folk on how it's applied in java. Is Lew on a period or something? Hehe get it...period...never mind....
From: Boris Punk on 7 Jul 2010 21:59 "Joshua Cranmer" <Pidgeot18(a)verizon.invalid> wrote in message news:i12c6n$gpt$1(a)news-int.gatech.edu... > On 07/07/2010 12:37 PM, Boris Punk wrote: >> long l = 9999999999999L; >> double f = 0.11111111111D; >> double fl = f+l; >> System.out.println(fl); >> >> =9.999999999999111E12 >> >> >> Where's the rest of the 0.1111111's ? > > Double has a 53-bit mantissa, which corresponds to around 15 decimal > digits of precision. > > -- > Beware of bugs in the above code; I have only proved it correct, not tried > it. -- Donald E. Knuth > thank you
From: Lew on 7 Jul 2010 22:04 Boris Punk wrote: > I did plenty of manual sums of floating point numbers at college on paper - > just wanted a refresher from some knowlegeable folk on how it's applied in > java [sic]. Is Lew on a period or something? Hehe get it...period...never mind.... Are you suggesting that there's something wrong with programmers knowing the basics of our profession? Or with espousing that we do? Seems to me that someone with a commitment to excellence in the programming profession would agree that we should improve our skills, study the basics, and strive for superiority in our professionalism, rather than make sexist, low-brow remarks about someone who makes those points. -- Lew
From: Roedy Green on 8 Jul 2010 01:01
On Wed, 07 Jul 2010 19:48:24 +0200, Mayeul <mayeul.marguet(a)free.fr> wrote, quoted or indirectly quoted someone who said : >Come on, if that did not lead to horribly broken code out in production, >it would be a great IT achievement that you can produce new programs >that work, without understanding what you're programming. I used use to teach FORTRAN at UBC way back when. We covered this in the first semester. This very basic stuff about floating point. If you taught yourself you may have missed this. See http://mindprod.com/jgloss/floatingpoint.html to fill in your missing background. -- Roedy Green Canadian Mind Products http://mindprod.com There is no harm in being sometimes wrong especially if one is promptly found out. ~ John Maynard Keynes (born: 1883-06-05 died: 1946-04-21 at age: 62) |