Reading IBM floating-point in C++ [duplicate]
问题 This question already has an answer here : IBM Single Precision Floating Point data conversion to intended value (1 answer) Closed 10 months ago . I have a a binary file format with a bunch of headers and floating point data. I am working on a code that parses the binary file. Reading the headers was not hard but when I tried to read the data I ran into some difficulties. I opened the file and read the headers as the following: ifs.open(fileName, std::ifstream::in | std::ifstream::binary);