mbf

Convert MBF Single and Double to IEEE

I've got some legacy data which is still in use, reading the binary files is not the problem, the number format is. All floating point numbers are saved in MBF format (Single and Double). I've found a topic about that on the MSDN boards but that one only deals with Single values. I'd also would like to stay away from API-Calls as far as ...

Convert MBF Double to IEEE

Hi, I found a topic below for convert MBF to IEEE. http://stackoverflow.com/questions/2973913/convert-mbf-single-and-double-to-ieee Anyone can explain what are the function of the code marked below? Dim sign As Byte = mbf(6) And ToByte(&H80) 'What is the reason AND (&H80)? Dim exp As Int16 = mbf(7) - 128S - 1S + 1023S 'Why is 115...