added bit size checking, added min and max value calculation, added more error handling, added more examples for different sized floats