locked
IEEE 754 floating point value RRS feed

  • Question

  • Hi All,

    I used the following 

    https://www.h-schmidt.net/FloatConverter/IEEE754.html 

    Convertor to check for the floating point value (0.00238044)

    the equivalent binary = 0 01110110 00111000000000100101000

    but If I remove first bit for sign (0) and the next eight bits for exponent:(01110110)

    the mantissa = 00111000000000100101000;

    I use the formula = 1*(2**-3)+  1*(2**-4)+ 1*(2**-5)+... I get 0.2187

    What mistake am i making in the conversion.

    PadLing

    Monday, August 13, 2018 10:48 AM

All replies

  • Hi,

    The Visual C# forum discuss and ask questions about the C# programming language, IDE, libraries, samples, and tools. If you have any question about the convertor you provided, please contact the convertor provider for help.

    Thanks for your understanding.

    Regards,

    Stanly


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, August 14, 2018 7:19 AM
  • Hi Stanly, Sorry about that and thanks for your reply.


    Tuesday, August 14, 2018 10:18 AM