C implementation of converting floating point number into various formats(FP16, FP32, FP64, bfloat16) and displays into binary, hexadecimal format.
- Floating points conversion to FP16, FP32, FP64, BF16
- Displays sign, exponent, mantissa bits
- Displays hexadecimal representation of floating points
- Displays converted exact floating point value
- Input can be floating point number or hexadecimal representation of floating point number()
Include "fConvert.h" header and compile with "fConvert.c" file
#include "fConvert.h"
Function convert() gets double(FP64) inputs and displays conversion results.
convert(3.141592654);
- Floating point input
./main 3.141592654
- Hexadecimal input(w/ -h, -s, -d, -b option)
./main 402df84d -s