This program allows you to convert between 24-bit floating-point representation and binary.
- Compile the program using a C compiler:
gcc -o main.exe main.cpp
- Run the compiled program:
./main.exe
- You will be prompted to enter either a binary value (prefixed with 'b') or a 24-bit float value.
- Depending on your input, the program will convert it to the other format and display the result.
- For binary input: b001110011001001011110010
- For float input: 0.012297
- Ensure that your input follows the specified formats. Invalid inputs may lead to unexpected behavior.