Matlab algorithm for converting floating point demical numbers to binary