简体   繁体   中英

how to convert a binary exponent to decimal?

I am stuck with converting the smallest denormalized double precision number which is 2^-1074 to one in the form of power of 10. Any help regarding how can I do this will be appreciated.

Thank You

Use 2^10 approx 10^3 to get 2^1070 approx. 10^(3*107)=10^321 . Combine with 2^4=16 ...


To get the correct result, compute

log10(2^1074)=1074*log10(2)=323.306215343116

and take the integer part.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM