Results 1 to 13 of 13
Like Tree3Likes
  • 1 Post By JosAH
  • 2 Post By JosAH

Thread: interesting site on floating point numbers

  1. #1
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default interesting site on floating point numbers

    Ran into this highly bookmarkable link on Stackoverflow on why floating point math works the way it does on computers:

    The Floating-Point Guide - What Every Programmer Should Know About Floating-Point Arithmetic

    It breaks the problem description down into layman's terms quite nicely I'd say. (PS: it is English)
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,423
    Blog Entries
    7
    Rep Power
    27

    Default Re: interesting site on floating point numbers

    Nah, Goldberg's article is the only article you need to study: What Every Computer Scientist Should Know About Floating-Point Arithmetic

    kind regards,

    Jos
    DarrylBurke likes this.
    Build a wall around Donald Trump; I'll pay for it.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    12,059
    Rep Power
    25

    Default Re: interesting site on floating point numbers

    I must say I agree with Jos.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,423
    Blog Entries
    7
    Rep Power
    27

    Default Re: interesting site on floating point numbers

    Quote Originally Posted by DarrylBurke View Post
    I must say I agree with Jos.
    Me too! I also agree with myself (as I always do).

    kindest regards,

    Jos ;-)
    Build a wall around Donald Trump; I'll pay for it.

  5. #5
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: interesting site on floating point numbers

    Elitists.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  6. #6
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,423
    Blog Entries
    7
    Rep Power
    27

    Default Re: interesting site on floating point numbers

    Quote Originally Posted by gimbal2 View Post
    Elitists.
    No we're not (at least me, myself and I are not) and that article stinks: it should've explained stuff in terms of 'ulps' (the smallest difference between two numbers a and b from the double set, which is actually a subset of set Q). All the other babbling is just, well, babbling.

    kindest regards,

    Jos
    Build a wall around Donald Trump; I'll pay for it.

  7. #7
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: interesting site on floating point numbers

    Elitist doesn't strike you as a rather harsh insult that is not to be taken seriously? Pardon. If you're just trolling me back: well done, you got me.

    I must admit I didn't click through more than three pages so I didn't know the quality of the "deeper explanation". I was rather attracted to the simple explanation only.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  8. #8
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,423
    Blog Entries
    7
    Rep Power
    27

    Default Re: interesting site on floating point numbers

    Quote Originally Posted by gimbal2 View Post
    I was rather attracted to the simple explanation only.
    Simplicist.

    kindest regards,

    Jos
    gimbal2 and Aryaa like this.
    Build a wall around Donald Trump; I'll pay for it.

  9. #9
    Aryaa is offline Member
    Join Date
    Jun 2015
    Posts
    42
    Rep Power
    0

    Default Re: interesting site on floating point numbers

    josah Sir, where are u from?

  10. #10
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,991
    Rep Power
    8

    Default Re: interesting site on floating point numbers

    Quote Originally Posted by Aryaa View Post
    josah Sir, where are u from?
    Jos, you're attracting a crowd! You might finally get a date now :)
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  11. #11
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,423
    Blog Entries
    7
    Rep Power
    27

    Default Re: interesting site on floating point numbers

    Quote Originally Posted by Aryaa View Post
    josah Sir, where are u from?
    You shouldn't ask questions that can easily be answered by a bit of reading: the top right corner of all my replies contains a 'Location' field; voila. Also, about your path problem: it has nothing to do with Java; it's an elementary computer (Windows, Linux, Mac etc) problem and it's also thoroughly explained in the tutorials; it just takes a bit of reading ...

    Jos
    Build a wall around Donald Trump; I'll pay for it.

  12. #12
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,423
    Blog Entries
    7
    Rep Power
    27

    Default Re: interesting site on floating point numbers

    Quote Originally Posted by SurfMan View Post
    Jos, you're attracting a crowd! You might finally get a date now :)
    Oh dear ... quick! Where's my fake moustache and my fake glasses?

    kind regards,

    not Jos
    Build a wall around Donald Trump; I'll pay for it.

  13. #13
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: interesting site on floating point numbers

    Quote Originally Posted by JosAH View Post
    Also, about your path problem: it has nothing to do with Java; it's an elementary computer (Windows, Linux, Mac etc) problem and it's also thoroughly explained in the tutorials; it just takes a bit of reading ...
    Jos
    You're posting a reply to another thread?
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. Floating Point vs Integer
    By CaleyM in forum New To Java
    Replies: 3
    Last Post: 01-31-2014, 03:55 AM
  2. floating point errors
    By mikele83 in forum New To Java
    Replies: 8
    Last Post: 04-24-2011, 03:52 PM
  3. Displaying floating point value
    By NuxlyStardust in forum New To Java
    Replies: 11
    Last Post: 04-14-2011, 06:40 PM
  4. Floating point inaccuracy
    By Aga in forum Advanced Java
    Replies: 6
    Last Post: 02-04-2011, 05:07 AM
  5. number of floating point
    By mohammad8065 in forum Advanced Java
    Replies: 5
    Last Post: 12-28-2008, 09:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •