Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Convert 1/3 to Floating Point

  1. Nov 14, 2008 #1
    Hello,
    How do i convert 1/3 to floating point (IEEE 754) ?
     
  2. jcsd
  3. Nov 14, 2008 #2

    CRGreathouse

    User Avatar
    Science Advisor
    Homework Helper

    Code (Text):
    float n = 1.0 / 3;
     
  4. Nov 14, 2008 #3
    i meant the actual representation of the number, not variable.
    [Sign Bit] [8bit EXP] [23bit Mantissa]
    but i've solved it , thanks anyway.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Convert 1/3 to Floating Point
  1. Floating point error (Replies: 8)

  2. Matlab floating point (Replies: 6)

  3. Floating point numbers. (Replies: 18)

Loading...