Results 1 to 3 of 3

Thread: machine epsilon

  1. #1
    rosh72851 is offline Member
    Join Date
    Sep 2008
    Posts
    58
    Rep Power
    0

    Exclamation machine epsilon

    What would be the smallest positive float (epsilon) such that 1.0 + epsilon != 1.0f?
    What is the condition that I have to use to attain this?
    Last edited by rosh72851; 09-24-2008 at 12:01 AM. Reason: m

  2. #2
    rosh72851 is offline Member
    Join Date
    Sep 2008
    Posts
    58
    Rep Power
    0

    Default

    Ok I figured how to do that.

    Next question, how do I convert float and double data types to binary. For float, ive used the function
    Java Code:
    Integer.toBinaryString(Float.floatToRawIntBits(value));
    But the answer doesnt seem to be right.
    Please suggest.

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,548
    Rep Power
    23

Similar Threads

  1. 32 bit machine or 64 bit machine
    By Kapil Gupta in forum Advanced Java
    Replies: 13
    Last Post: 06-24-2008, 03:29 AM
  2. How to get URL from network machine
    By Mir in forum Networking
    Replies: 1
    Last Post: 04-02-2008, 12:08 AM
  3. Getting name/ip of a machine
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-02-2008, 07:11 PM
  4. Too many virtual Machine
    By davantmay in forum Java Applets
    Replies: 1
    Last Post: 07-06-2007, 10:53 PM
  5. Virtual Machine To Pda
    By Heather in forum Advanced Java
    Replies: 2
    Last Post: 06-30-2007, 03:11 PM

Posting Permissions

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