float to bin: changed from union constructor to a function