how can I extract the mantissa of a double

前端 未结 4 1153
执笔经年
执笔经年 2020-12-01 16:37

I would like to store in a variable the mantisssa of a double

I have post a code to get the binary representation of a double : click here

What should I chan

4条回答
  •  盖世英雄少女心
    2020-12-01 17:30

    Many Linux systems have /usr/include/ieee754.h which defines bitfields for IEEE-format float, double and long double: you could trivially "port" it if necessary.

提交回复
热议问题