In case the number is stored in a format described as IEEE 754 (floating point arithmetic common) then seek advice from the standard used.
Just to prove how simple converting binary to decimal is, Permit’s check out https://sachindxqj911041.answerblogs.com/29674989/rumored-buzz-on-binary-translator-1010