24-bit Float Converter

This program allows you to convert between 24-bit floating-point representation and binary.

Usage:

  1. Compile the program using a C compiler: gcc -o main.exe main.cpp
  2. Run the compiled program: ./main.exe
  3. You will be prompted to enter either a binary value (prefixed with 'b') or a 24-bit float value.
  4. Depending on your input, the program will convert it to the other format and display the result.

Example Inputs:

  • For binary input: b001110011001001011110010
  • For float input: 0.012297

Notes:

  • Ensure that your input follows the specified formats. Invalid inputs may lead to unexpected behavior.

License

MIT