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
    How do i convert 1/3 to floating point (IEEE 754) ?
  2. jcsd
  3. Nov 14, 2008 #2


    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